Sequence Event - Katsuya100/SceneLayer-Trial GitHub Wiki
Summary
In SceneLayer, strict sequence control is in place, and Events in a sequence can be hooked by functions.
Knowing the events will aid in the implementation of initialization, deallocation, etc.
List of Sequence Events
The following events exist in the SceneLayer system.
Event | Details | Corresponding event function |
---|---|---|
PreTransition | Pre-transition event.It is processed asynchronously and across multiple frames.It is used, for example, to implement fade-out processing.It is also possible to Load the object to be transitioned to in advance from this point.This event is executed as soon as the transition sequence begins. | LayerBehaviour.OnPreTransitToLayerBehaviour.OnPreTransitFromLayerBehaviour.OnPreParentTransitToLayerBehaviour.OnPreParentTransitFromLayerBehaviour.OnPreChildTransitTransitionBehaviour.OnPreTransit |
Transition | In-transition event.It is processed asynchronously and across multiple frames.・Load or instantiate the object to be transitioned to・Release or destroy the object from which the transition originatesand others. | LayerBehaviour.OnTransitToLayerBehaviour.OnTransitFromLayerBehaviour.OnParentTransitToLayerBehaviour.OnParentTransitFromLayerBehaviour.OnChildTransitTransitionBehaviour.OnTransit |
PostTransition | Post-transition event.It is processed asynchronously and across multiple frames.・fade-in process.・LazyLoad and instantiation of the object to be transitioned to.・Release of the object from which the transition originates.and others.The transition sequence is also not complete until this event is completed. | LayerBehaviour.OnPostTransitToLayerBehaviour.OnPostTransitFromLayerBehaviour.OnPostParentTransitToLayerBehaviour.OnPostParentTransitFromLayerBehaviour.OnPostChildTransitTransitionBehaviour.OnPostTransit |
Entry | Layer Entry event.Only one frame is executed.Simple initialization in the Layer is done here. | LayerBehaviour.OnEntry |
Update | Layer Update eventMultiple frames are performed repeatedly.Implement the main loop and update process in the game. | LayerBehaviour.OnUpdate |
Exit | Layer Exit event.Only one frame is executed.The cleanup of the process performed in Layer is done here. | LayerBehaviour.OnExit |
The order of execution of sequence events is here.