Antura  1.1.0
Antura.Core.SceneTransitionManager Class Reference

Manager that handles scene load and transitions between scenes. More...

Public Member Functions

void OnEnable ()
 
void OnDisable ()
 
void SetSettings (SceneTransitionSettings _transitionSettings)
 Set scene transition settings. More...
 
void LoadSceneWithTransition (string _sceneToLoad)
 Load scene. Call just once, otherwise transition will be reset and not triggered. More...
 
void LoadSceneWithTransition (string _sceneToLoad, SceneTransitionSettings _transitionSettings)
 Load scene. Call just once, otherwise transition will be reset and not triggered. More...
 

Public Attributes

Action OnSceneStartTransition
 
Action OnSceneEndTransition
 
int NumberOfLoadedScenes = 0
 
SceneTransitionSettings TransitionSettings = new SceneTransitionSettings()
 Actual transition settings. More...
 

Properties

bool IsTransitioning [get]
 

Detailed Description

Manager that handles scene load and transitions between scenes.

Member Function Documentation

◆ LoadSceneWithTransition() [1/2]

void Antura.Core.SceneTransitionManager.LoadSceneWithTransition ( string  _sceneToLoad)

Load scene. Call just once, otherwise transition will be reset and not triggered.

Parameters
_sceneToLoadThe name of the scene to load

◆ LoadSceneWithTransition() [2/2]

void Antura.Core.SceneTransitionManager.LoadSceneWithTransition ( string  _sceneToLoad,
SceneTransitionSettings  _transitionSettings 
)

Load scene. Call just once, otherwise transition will be reset and not triggered.

Parameters
_sceneToLoadThe name of the scene to load
_transitionSettingsCustom transition settings

◆ OnDisable()

void Antura.Core.SceneTransitionManager.OnDisable ( )

◆ OnEnable()

void Antura.Core.SceneTransitionManager.OnEnable ( )

◆ SetSettings()

void Antura.Core.SceneTransitionManager.SetSettings ( SceneTransitionSettings  _transitionSettings)

Set scene transition settings.

Parameters
_transitionSettings

Member Data Documentation

◆ NumberOfLoadedScenes

int Antura.Core.SceneTransitionManager.NumberOfLoadedScenes = 0

◆ OnSceneEndTransition

Action Antura.Core.SceneTransitionManager.OnSceneEndTransition

◆ OnSceneStartTransition

Action Antura.Core.SceneTransitionManager.OnSceneStartTransition

◆ TransitionSettings

SceneTransitionSettings Antura.Core.SceneTransitionManager.TransitionSettings = new SceneTransitionSettings()

Actual transition settings.

Property Documentation

◆ IsTransitioning

bool Antura.Core.SceneTransitionManager.IsTransitioning
get

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