Component managing scene transitions or loading of scenes is 'SceneTransitionManager'.
It works with 'SceneTrigger' component that you place on a scene to trigger loading or adding a new scene.
'SceneTrigger' is also derived from the 'Trigger' component and has similar working methods.
Usage:
- choose 'SceneTrigger' type of action:
'Load Single' = loads assigned scene and unload current one.
'Load Additive' = loads assigned scene along with the current one.
'Unload' = unload assigned scene.
- enter the name of the scene to load or unload.
- enter display text that will show while player is colliding with
trigger collider ( if enabled ).
- enable or disable display of info text
- enter name of transform that player will spawn on in the next scene.
- enter fade value of screen when starting load new scene.
- set angle condition.
- set should scene be loaded asynchronous.
- set should all object that are not destroyed on load be destroyed. ( player, canvas, scene controller and other objects are not destroyed on load most times, but
sometimes, if loading menu or a fresh new scene, those objects need to be destroyed ).
- assign audio clip that should play upon starting a new scene ( like a door opening )
- and last, choose input which will trigger scene transition.