Manage the transition between scenes
More...
|
void | FadeAndLoadScene (string sceneName, Vector3 spawnPosition) |
| This is the main externam point of contact and influence from the rest of the project. This will be called when the player wants to switch scenes. More...
|
|
|
IEnumerator | Fade (float finalAlpha) |
| Handle the fade in blocking and unblocking inputs. More...
|
|
IEnumerator | FadeAndSwitchScenes (string sceneName, Vector3 spawnPosition) |
| Handle fading, switching and unloading scenes. More...
|
|
IEnumerator | LoadSceneAndSetActive (string sceneName) |
| Load the scene and the activate it. Basically, we are additing our new scene to the Persistent scene. More...
|
|
IEnumerator | Start () |
| Load the starting scene More...
|
|
Manage the transition between scenes
Definition at line 10 of file SceneControllerManager.cs.
◆ Fade()
IEnumerator SceneControllerManager.Fade |
( |
float |
finalAlpha | ) |
|
|
inlineprivate |
◆ FadeAndLoadScene()
void SceneControllerManager.FadeAndLoadScene |
( |
string |
sceneName, |
|
|
Vector3 |
spawnPosition |
|
) |
| |
|
inline |
This is the main externam point of contact and influence from the rest of the project. This will be called when the player wants to switch scenes.
- Parameters
-
Definition at line 144 of file SceneControllerManager.cs.
◆ FadeAndSwitchScenes()
IEnumerator SceneControllerManager.FadeAndSwitchScenes |
( |
string |
sceneName, |
|
|
Vector3 |
spawnPosition |
|
) |
| |
|
inlineprivate |
◆ LoadSceneAndSetActive()
IEnumerator SceneControllerManager.LoadSceneAndSetActive |
( |
string |
sceneName | ) |
|
|
inlineprivate |
Load the scene and the activate it. Basically, we are additing our new scene to the Persistent scene.
- Parameters
-
- Returns
Definition at line 102 of file SceneControllerManager.cs.
◆ Start()
IEnumerator SceneControllerManager.Start |
( |
| ) |
|
|
inlineprivate |
◆ m_FadeDuration
float SceneControllerManager.m_FadeDuration = 1.0f |
|
private |
◆ m_FaderCanvasGroup
CanvasGroup SceneControllerManager.m_FaderCanvasGroup = null |
|
private |
◆ m_FaderImage
Image SceneControllerManager.m_FaderImage = null |
|
private |
◆ m_IsFading
bool SceneControllerManager.m_IsFading |
|
private |
◆ m_StartingSceneName
SceneName SceneControllerManager.m_StartingSceneName |
The documentation for this class was generated from the following file: