Forum rules - please read before posting.

Check scene method?

Hi,
I wondered if it was possible to call the 'check scene' Action in C#, but by name instead of number?
The "check if scene name is 'demo'" for example.
 I could only find the check by number in the scripting guide but I tend to move the scenes around a bit in the build.

Thanks!

Comments

  • The Scene: Check Action allows you to do this without scripting, but if you want to do it in C# you can read the UnityVersionHandler script's GetCurrentSceneName static method:

    AC.UnityVersionHandler.GetCurrentSceneName ()

    For some reason, it's not appearing in the scripting guide - I'll look into it.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.