Abstract class for continuous content transition. More...
Public Member Functions | |
float | GetProgress () |
Gets the progress of the animation. | |
override void | Initialize (Viewer viewer, int frameIndex) |
Initializes the module with a given Viewer instance and frame index. | |
virtual void | ResetProgress () |
Resets the progress of the animation. | |
virtual void | SetProgress (float value) |
Sets the progress of the animation. | |
![]() | |
override void | Initialize (Viewer viewer) |
Initializes the module with a given Viewer instance. | |
Public Attributes | |
float | duration = 0.3f |
The duration of the animation. | |
AnimationCurve | curve = AnimationCurve.EaseInOut(0, 0, 1, 1) |
The animation curve. | |
Protected Member Functions | |
override void | Finish () |
Finalizes the animation process. | |
override void | OnDestroy () |
Handles the destruction of the module. | |
override void | Prepare () |
Prepares the content for the animation process. | |
virtual void | PrepareAnimation () |
Prepares the animation process. | |
override void | Process () |
Processes the animation of the content. | |
virtual void | Process (float value) |
Processes the animation of the content. | |
void | Update () |
Updates the state of the animation each frame. This method is called once per frame and is responsible for updating the progress of the animation, processing the animation, and finalizing the animation when it's complete. | |
![]() | |
override void | OnDestroy () |
Handles the destruction of the module. | |
override void | OnViewerInitialized () |
Handles the initialization of the viewer. | |
![]() | |
virtual void | OnFrameChangeComplete () |
Handles the completion of the frame change. | |
virtual void | OnFrameChanged (int index) |
Handles the FrameChanged event of the viewer's message system. | |
virtual void | OnReload () |
Method called when the list or contents of frames have been changed. | |
Protected Attributes | |
int | animatedTargetFrameIndex |
The index of the target frame. | |
bool | isPlaying |
Indicates whether the animation is playing. | |
Content | newContent |
The new content. | |
Content | oldContent |
The old content. | |
float | progress |
The progress of the animation. | |
![]() | |
int | targetFrameIndex |
The index of the target frame. | |
![]() | |
ContentContainer | contentContainer |
The ContentContainer instance associated with the module. | |
Additional Inherited Members | |
![]() | |
int | currentFrameIndex [get, protected set] |
The index of the current frame. | |
![]() | |
RectTransform | contentTransform [get] |
Gets the RectTransform of the content container. | |
![]() | |
MessageSystem | messageSystem [get] |
Gets the MessageSystem instance from the Viewer. | |
virtual Property[] | properties [get] |
Gets an array of Property objects associated with the module. | |
RectTransform | rectTransform [get] |
Gets the RectTransform component of the module. | |
Viewer | viewer [get] |
Gets the Viewer instance associated with the module. | |
Abstract class for continuous content transition.
float GetProgress | ( | ) |
Gets the progress of the animation.
|
virtual |
Initializes the module with a given Viewer instance and frame index.
viewer | The Viewer instance. |
frameIndex | The index of the frame. |
Reimplemented from Transition.
|
protectedvirtual |
Processes the animation of the content.
value | The value of the animation curve. |
Reimplemented in Fade, HorizontalFlip, HorizontalSlide, HorizontalSlideAndFade, VerticalFlip, VerticalSlide, and VerticalSlideAndFade.
|
virtual |
Sets the progress of the animation.
value | The progress of the animation. |
Reimplemented in Fade, HorizontalFlip, HorizontalSlide, HorizontalSlideAndFade, VerticalFlip, VerticalSlide, and VerticalSlideAndFade.