Additive Scene Manager
An API For Level Streaming in Unity.
Loading...
Searching...
No Matches
SceneControllerEditor Class Reference

Editor Script to render the Inspector for SceneController. More...

Private Member Functions

VisualElement CreateSceneListBox (SerializedProperty sceneListProperty, string labelValue)
 Creates a box that shows a list of scenes that can be added, removed, and reordered.
VisualElement CreateLoadedSceneListBox ()
 Creates a box that shows a list of currently loaded scenes.
VisualElement CreateOptionsBox ()
 Creates the Options Box.
void OnActiveSceneChanged (Scene oldScene, Scene newScene)
 Called when the Active Scene is changed, update the list of scenes.
void OnThreadPriorityChanged (ChangeEvent< string > evt)
 Called when changing the Thread Proiority Dropdown menu.
void OnSceneButtonClick (ClickEvent evt)
 Called when clicking on the small button next to the Scene's name.
void OnToggleInGameUI (ChangeEvent< bool > evt)
 Called when clicking the "Show In-Game UI" Toggle.
void OnClickBakeLightmaps (ClickEvent evt)
 Called when clicking on the "Bake Lightmaps" button.
void OnClickButtonHelp (ClickEvent evt)
 Called when clicking on the "?" button next to the Thread Priority Dropdown.
void UnloadScene (string sceneName)
 Unload a Scene using EditorSceneManager in Edit Mode or SceneManager at runtime.
void LoadScene (string sceneName)
 Load a Scene using EditorSceneManager in Edit Mode or SceneManager at runtime.

Private Attributes

SerializedObject settingsObject
 SerializedObject for SceneControllerSettings ScriptableObject.
SerializedProperty loadedScenesProp
 SerializedProperty for SceneControllerSettings.loadedScenes list.
ListView listViewLoadedScenes
 The ListView Element that renders the loadedScenes list.
DropdownField dropdownThreadPriority
 Dropdown Field for setting the ThreadPriority of Application.backgroundLoadingPriority.
HelpBox helpboxThreadPriority
 The Helpbox displayed when clicking the "?" Button next to the ThreadPriority Dropdown.

Detailed Description

Editor Script to render the Inspector for SceneController.

Member Function Documentation

◆ CreateLoadedSceneListBox()

VisualElement CreateLoadedSceneListBox ( )
private

Creates a box that shows a list of currently loaded scenes.

Returns
Returns the box VisualElement.

◆ CreateOptionsBox()

VisualElement CreateOptionsBox ( )
private

Creates the Options Box.

Returns
Returns the box VisualElement.

◆ CreateSceneListBox()

VisualElement CreateSceneListBox ( SerializedProperty sceneListProperty,
string labelValue )
private

Creates a box that shows a list of scenes that can be added, removed, and reordered.

Parameters
sceneListPropertyList of AdditiveScene to display.
labelValueLabel for the Box.
Returns
Returns the box VisualElement.

◆ LoadScene()

void LoadScene ( string sceneName)
private

Load a Scene using EditorSceneManager in Edit Mode or SceneManager at runtime.

Parameters
sceneNameThe name of the Scene.

◆ OnActiveSceneChanged()

void OnActiveSceneChanged ( Scene oldScene,
Scene newScene )
private

Called when the Active Scene is changed, update the list of scenes.

◆ OnClickBakeLightmaps()

void OnClickBakeLightmaps ( ClickEvent evt)
private

Called when clicking on the "Bake Lightmaps" button.

◆ OnClickButtonHelp()

void OnClickButtonHelp ( ClickEvent evt)
private

Called when clicking on the "?" button next to the Thread Priority Dropdown.

◆ OnSceneButtonClick()

void OnSceneButtonClick ( ClickEvent evt)
private

Called when clicking on the small button next to the Scene's name.

◆ OnThreadPriorityChanged()

void OnThreadPriorityChanged ( ChangeEvent< string > evt)
private

Called when changing the Thread Proiority Dropdown menu.

◆ OnToggleInGameUI()

void OnToggleInGameUI ( ChangeEvent< bool > evt)
private

Called when clicking the "Show In-Game UI" Toggle.

◆ UnloadScene()

void UnloadScene ( string sceneName)
private

Unload a Scene using EditorSceneManager in Edit Mode or SceneManager at runtime.

Parameters
sceneNameThe name of the Scene.

Member Data Documentation

◆ dropdownThreadPriority

DropdownField dropdownThreadPriority
private

Dropdown Field for setting the ThreadPriority of Application.backgroundLoadingPriority.

◆ helpboxThreadPriority

HelpBox helpboxThreadPriority
private

The Helpbox displayed when clicking the "?" Button next to the ThreadPriority Dropdown.

◆ listViewLoadedScenes

ListView listViewLoadedScenes
private

The ListView Element that renders the loadedScenes list.

◆ loadedScenesProp

SerializedProperty loadedScenesProp
private

SerializedProperty for SceneControllerSettings.loadedScenes list.

◆ settingsObject

SerializedObject settingsObject
private

SerializedObject for SceneControllerSettings ScriptableObject.


The documentation for this class was generated from the following file: