Learn / Documentation / Script Reference / SceneLoadBehavior

SceneLoadBehavior

class in Doozy.Engine.SceneManagement

Description

The SceneLoadBehavior class contains settings and 'actions' used and triggered by the SceneLoader when loading a scene.
See Also: SceneLoader

Properties

  • public bool HasAnimatorEvents – Returns TRUE if either OnLoadScene UIAction or OnSceneLoaded UIAction have at least one AnimatorEvent in their AnimatorEvents list

  • public bool HasEffect – Returns TRUE if either OnLoadScene UIAction Effect (UIEffect) or OnSceneLoaded UIAction Effect (UIEffect) have a target ParticleSystem referenced

  • public bool HasGameEvents – Returns TRUE if either OnLoadScene UIAction or OnSceneLoaded UIAction have at least one game event in their GameEvents list

  • public bool HasSound – Returns TRUE if either OnLoadScene UIAction or OnSceneLoaded UIAction have valid sound settings

  • public bool HasUnityEvents – Returns TRUE if either OnLoadScene UIAction Event (UnityEvent) or OnSceneLoaded UIAction Event (~UnityEvent`) have at least one registered persistent listener

Public Variables

  • public UIAction OnLoadScene – Actions performed when a scene started loading

  • public UIAction OnSceneLoaded – Actions performed when the scene has been loaded (the progress is at 0.9 (90%)) and has not been activated yet (the reset 0.1 (10%)). When loading a scene, Unity first loads the scene (load progress from 0% to 90%) and then activates it (load progress from 90% to 100%). It’s a two state process. This action is triggered after the scene has been loaded and before its activation (at 90% load progress)

Constructors

  • public SceneLoadBehavior() – Initializes a new instance of the class

Public Methods

  • public void Reset() – Resets this instance to the default values