/** * <summary>Allows the Scene and Variables Managers to show UI controls for the currently-active scene, if multiple scenes are being edited.</summary> * <returns>The name of the currently-open scene.</summary> */ public static string EditActiveScene() { string openScene = UnityVersionHandler.GetActiveSceneName(); if (openScene != "" && !Application.isPlaying) { if (FindObjectOfType <KickStarter>() != null) { FindObjectOfType <KickStarter>().ClearVariables(); } } return(openScene); }