SceneEditorUtility¶
Namespace:
SideXP.Core.EditorOnly
Miscellaneous utility functions for working with Scene and SceneAsset in the editor.
Methods¶
IsIncluded(Scene)¶
Checks if a given scene is included in build settings.
Parameters
scene: The scene to check.
Returns
Returns true if the given scene is included in build settings, whether it's enabled or not.
IsIncluded(SceneAsset)¶
Checks if a given scene is included in build settings.
Parameters
sceneAsset: The scene to check.
Returns
Returns true if the given scene is included in build settings, whether it's enabled or not.
IsIncluded(string)¶
Checks if a given scene is included in build settings.
Parameters
scenePath: The path of the scene to check.
Returns
Returns true if the given scene is included in build settings, whether it's enabled or not.
IsEnabled(Scene)¶
Checks if a given scene is included and enabled in build settings.
Parameters
scene: The scene to check.
Returns
Returns true if the given scene is included and enabled in build settings.
IsEnabled(SceneAsset)¶
Checks if a given scene is included and enabled in build settings.
Parameters
sceneAsset: The scene to check.
Returns
Returns true if the given scene is included and enabled in build settings.
IsEnabled(string)¶
Checks if a given scene is included and enabled in build settings.
Parameters
scenePath: The path of the scene to check.
Returns
Returns true if the given scene is included and enabled in build settings.
AddToBuildSettings(Scene)¶
Adds a given scene to the build settings, if it's not already registered.
Parameters
scene: The scene to add.
Returns
Returns true if the scene has been added to build settings successfully.
AddToBuildSettings(SceneAsset)¶
Adds a given scene to the build settings, if it's not already registered.
Parameters
sceneAsset: The scene to add.
Returns
Returns true if the scene has been added to build settings successfully.
AddToBuildSettings(string)¶
Adds a given scene to the build settings, if it's not already registered.
Parameters
scenePath: The path of the scene to add.
Returns
Returns true if the scene has been added to build settings successfully.
Enable(Scene)¶
Enables a given scene in the build settings.
Parameters
scene: The scene to enable.
Returns
Returns true if the scene has been enabled successfully or was already enabled.
Enable(SceneAsset)¶
Enables a given scene in the build settings.
Parameters
sceneAsset: The scene to enable.
Returns
Returns true if the scene has been enabled successfully or was already enabled.
Enable(string)¶
Enables a given scene in the build settings.
Parameters
scenePath: The path of the scene to enable.
Returns
Returns true if the scene has been enabled successfully or was already enabled.
Disable(Scene)¶
Disables a given scene in the build settings.
Parameters
scene: The scene to disable.
Returns
Returns true if the scene has been disabled successfully or was already disabled.
Disable(SceneAsset)¶
Disables a given scene in the build settings.
Parameters
sceneAsset: The scene to disable.
Returns
Returns true if the scene has been disabled successfully or was already disabled.
Disable(string)¶
Disables a given scene in the build settings.
Parameters
scenePath: The path of the scene to disable.
Returns
Returns true if the scene has been disabled successfully or was already disabled.
RemoveFromBuildSettings(Scene)¶
Removes a given scene from the build settings.
Parameters
scene: The scene to remove.
Returns
Returns true if the scene has been removed from the build settings successfully.
RemoveFromBuildSettings(SceneAsset)¶
Removes a given scene from the build settings.
Parameters
sceneAsset: The scene to remove.
Returns
Returns true if the scene has been removed from the build settings successfully.
RemoveFromBuildSettings(string)¶
Removes a given scene from the build settings.
Parameters
scenePath: The path of the scene to remove.
Returns
Returns true if the scene has been removed from the build settings successfully.