Forum rules - please read before posting.

Check whether game is running in Editor within an actionlist

Hi
Is it possible to check whether the game is running in the Editor within an Action List?

I want to have an OnStart action list that takes you to the main menu, but ideally I don't want that to happen if I'm running the game in the editor and I just want the game to start in the current scene.

If that's not possible, any chance you can add that to the Engine actions?

Olly

Comments

  • Not currently, but I see the case for this - thanks for the suggestion.

  • I'll see this added as part of the next release.

    If you want to add this manually in the meantime, add "Editor" to the Enum script's PlatformType enum (around line 200), and then add the following into the ActionPlatformCheck Action's Run function (above default:)

    case PlatformType.Editor:
        #if UNITY_EDITOR
        return true;
        #else
        return false;
    

    That'll give you a new "Editor" option in the Engine: Check platform Action.

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.