#include <UiFlipbookAnimationComponent.h>
Inherits AZ::Component, UiCanvasUpdateNotificationBus::Handler, UiFlipbookAnimationBus::Handler, UiInitializationBus::Handler, and UiSpriteSourceNotificationBus::Handler.
|
| AZ_COMPONENT (UiFlipbookAnimationComponent, LyShine::UiFlipbookAnimationComponentUuid) |
|
void | Activate () override |
|
void | Deactivate () override |
|
void | Update (float deltaTime) override |
|
void | InGamePostActivate () override |
|
void | Start () override |
|
void | Stop () override |
|
bool | IsPlaying () override |
|
AZ::u32 | GetStartFrame () override |
|
void | SetStartFrame (AZ::u32 startFrame) override |
|
AZ::u32 | GetEndFrame () override |
|
void | SetEndFrame (AZ::u32 endFrame) override |
|
AZ::u32 | GetCurrentFrame () override |
|
void | SetCurrentFrame (AZ::u32 currentFrame) override |
|
AZ::u32 | GetLoopStartFrame () override |
|
void | SetLoopStartFrame (AZ::u32 loopStartFrame) override |
|
UiFlipbookAnimationInterface::LoopType | GetLoopType () override |
|
void | SetLoopType (UiFlipbookAnimationInterface::LoopType loopType) override |
|
float | GetFramerate () override |
|
void | SetFramerate (float framerate) override |
|
FramerateUnits | GetFramerateUnit () override |
|
void | SetFramerateUnit (FramerateUnits framerateUnit) override |
|
float | GetStartDelay () override |
|
void | SetStartDelay (float startDelay) override |
|
float | GetLoopDelay () override |
|
void | SetLoopDelay (float loopDelay) override |
|
float | GetReverseDelay () override |
|
void | SetReverseDelay (float reverseDelay) override |
|
bool | GetIsAutoPlay () override |
|
void | SetIsAutoPlay (bool isAutoPlay) override |
|
void | OnSpriteSourceChanged () override |
|
|
static void | GetProvidedServices (AZ::ComponentDescriptor::DependencyArrayType &provided) |
|
static void | GetIncompatibleServices (AZ::ComponentDescriptor::DependencyArrayType &incompatible) |
|
static void | GetRequiredServices (AZ::ComponentDescriptor::DependencyArrayType &required) |
|
|
LyShine::AZu32ComboBoxVec | PopulateIndexStringList () const |
| Returns a string representation of the indices used to index sprite-sheet types.
|
|
LyShine::AZu32ComboBoxVec | PopulateConstrainedIndexStringList () const |
| Populates a list of enumerated frame values between the start and end frame range.
|
|
AZ::u32 | GetMaxFrame () const |
| Total number of cells within sprite-sheet.
|
|
bool | FrameWithinRange (AZ::u32 frameValue) |
| Ensures that the given frame value is valid for the associated sprite-sheet.
|
|
void | OnStartFrameChange () |
| Updates correlated frame values when the start frame value changes.
|
|
void | OnEndFrameChange () |
| Updates correlated frame values when the end frame value changes.
|
|
void | OnFramerateUnitChange () |
| Converts the frame-rate value based on the new framerate unit.
|
|
bool | IsPingPongLoopType () const |
| Returns true if this is a PingPong loop type, false otherwise.
|
|
bool | IsLoopingType () const |
| Returns true if animation will loop, false otherwise.
|
|
float | CalculateLoopDelay () const |
| Returns the amount to delay the current (forward or reverse) loop sequence.
|
|
float | CalculateFramerateAsSecondsPerFrame () const |
| Returns the framerate in seconds-per-frame.
|
|
|
static void | Reflect (AZ::ReflectContext *context) |
|
FlipbookAnimationComponent FlipbookAnimationComponent provides a way to create an animated sprite for a UI canvas using sprite-sheets (via the image component)
◆ m_currentFrame
AZ::u32 UiFlipbookAnimationComponent::m_currentFrame = 0 |
|
protected |
Units to use when defining framerate.
Current sprite-sheet frame/index displayed
◆ m_startFrame
AZ::u32 UiFlipbookAnimationComponent::m_startFrame = 0 |
|
protected |
Start frame of animation. Can be different from "loop start" frame to allow animations to have an "intro" sequence.
The documentation for this class was generated from the following file:
- Gems/LyShine/Code/Source/UiFlipbookAnimationComponent.h