SceneRefsEditorUtility¶
Namespace:
SideXP.SceneRefs.EditorOnly
Utility functions for working with SceneRefSO in the editor.
Methods¶
GenerateAllSceneRefs()¶
Generates SceneRefSO assets for all the existing scenes in the project.
Remarks
The new SceneRefSO assets are generated in the same folder as the scene they represent.
GenerateSceneRef(SceneAsset)¶
Generates a SceneRefSO asset for a given SceneAsset.
Parameters
sceneAsset: The scene asset for which to create a runtime ref.
Returns
Returns true if a SceneRefSO asset has been generated successfully.
GetSceneRef(SceneAsset)¶
Gets an existing SceneRefSO asset that represents a given scene.
Parameters
sceneAsset: The scene of which to get the related SceneRefSO asset.
Returns
Returns the found SceneRefSO asset that represents the given scene.
GetSceneRef(SceneAsset, SceneRefSO)¶
Gets an existing SceneRefSO asset that represents a given scene.
Parameters
sceneRef: Outputs the SceneRefSO asset that represents the given scene.sceneAsset: The scene of which to get the related SceneRefSO asset.
Returns
Returns true if a related SceneRefSO asset has been found.
IsIncluded(SceneRefSO)¶
Parameters
sceneRef: The scene to check.
IsEnabled(SceneRefSO)¶
Parameters
sceneRef: The scene to check.
AddToBuildSettings(SceneRefSO)¶
Parameters
sceneRef: The scene to add.
Enable(SceneRefSO)¶
Parameters
sceneRef: The scene to enable.
Disable(SceneRefSO)¶
Parameters
sceneRef: The scene to disable.
RemoveFromBuildSettings(SceneRefSO)¶
Parameters
sceneRef: The scene to remove.