|
SkiaForUnity
|
Provides functionality to play and control Lottie animations in Unity. More...
Public Member Functions | |
| void | LoadAnimation (string json) |
| Loads an animation from a JSON string and prepares it for playback. | |
| void | SetState (string name) |
| Sets the current state of the Lottie animation. | |
| string | GetStateName () |
| Gets the name of the current animation state. | |
| double | GetFps () |
| Gets the frames per second (FPS) of the loaded animation. | |
| double | GetDurations () |
| Gets the total duration of the loaded animation in seconds. | |
| void | PlayAnimation (bool? reset=null) |
| Initiates playback of the loaded animation. | |
Public Attributes | |
| bool | customResolution |
| bool | resetAfterFinished = false |
| bool | autoPlay = false |
| bool | loop = false |
| UnityAction< string > | OnAnimationFinished |
| UnityAction | OnAnimationInit |
Provides functionality to play and control Lottie animations in Unity.
Definition at line 31 of file SkottiePlayerV2.cs.
| double SkiaSharp.Unity.SkottiePlayerV2.GetDurations | ( | ) |
Gets the total duration of the loaded animation in seconds.
Definition at line 181 of file SkottiePlayerV2.cs.
| double SkiaSharp.Unity.SkottiePlayerV2.GetFps | ( | ) |
Gets the frames per second (FPS) of the loaded animation.
Definition at line 173 of file SkottiePlayerV2.cs.
| string SkiaSharp.Unity.SkottiePlayerV2.GetStateName | ( | ) |
Gets the name of the current animation state.
Definition at line 162 of file SkottiePlayerV2.cs.
| void SkiaSharp.Unity.SkottiePlayerV2.LoadAnimation | ( | string | json | ) |
Loads an animation from a JSON string and prepares it for playback.
| json | The JSON string containing the animation data. |
Definition at line 119 of file SkottiePlayerV2.cs.
| void SkiaSharp.Unity.SkottiePlayerV2.PlayAnimation | ( | bool? | reset = null | ) |
Initiates playback of the loaded animation.
| reset | Whether to reset the animation to the beginning when finished. |
Definition at line 189 of file SkottiePlayerV2.cs.
| void SkiaSharp.Unity.SkottiePlayerV2.SetState | ( | string | name | ) |
Sets the current state of the Lottie animation.
| name | The name of the state to set. |
Definition at line 139 of file SkottiePlayerV2.cs.
| bool SkiaSharp.Unity.SkottiePlayerV2.autoPlay = false |
Definition at line 43 of file SkottiePlayerV2.cs.
| bool SkiaSharp.Unity.SkottiePlayerV2.customResolution |
Definition at line 35 of file SkottiePlayerV2.cs.
| bool SkiaSharp.Unity.SkottiePlayerV2.loop = false |
Definition at line 45 of file SkottiePlayerV2.cs.
| UnityAction<string> SkiaSharp.Unity.SkottiePlayerV2.OnAnimationFinished |
Definition at line 47 of file SkottiePlayerV2.cs.
| UnityAction SkiaSharp.Unity.SkottiePlayerV2.OnAnimationInit |
Definition at line 48 of file SkottiePlayerV2.cs.
| bool SkiaSharp.Unity.SkottiePlayerV2.resetAfterFinished = false |
Definition at line 41 of file SkottiePlayerV2.cs.