AnimationPlayer
public class AnimationPlayerNo description is available for this type.
Properties
Section titled “Properties”
public string Guid { get; }No description is available for this member.
Returns
System.String — No return description is available.
IsLoaded
Section titled “IsLoaded”public bool IsLoaded { get; }No description is available for this member.
Returns
System.Boolean — No return description is available.
Constructors
Section titled “Constructors”
AnimationPlayer(string)
Section titled “AnimationPlayer(string)”public AnimationPlayer(string guid)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
guid |
System.String |
Methods
Section titled “Methods”
ResolveFrameInterval(float, float, int)
Section titled “ResolveFrameInterval(float, float, int)”public static float ResolveFrameInterval(float defaultFrameInterval, float minimumVisibleDuration, int frameCount)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
defaultFrameInterval |
System.Single | |
minimumVisibleDuration |
System.Single | |
frameCount |
System.Int32 |
Returns
System.Single — No return description is available.
LoadAnimation(AssetInfo, string)
Section titled “LoadAnimation(AssetInfo, string)”public Task<bool> LoadAnimation(AssetInfo info, string previewFolder)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
info |
AssetInventory.AssetInfo | |
previewFolder |
System.String |
Returns
System.Threading.Tasks.Task{System.Boolean} — No return description is available.
LoadFromTexture(Texture2D, int)
Section titled “LoadFromTexture(Texture2D, int)”public bool LoadFromTexture(Texture2D spriteSheet, int frameGrid)Load animation directly from an existing sprite sheet texture. The texture is NOT owned by this player and will NOT be destroyed on dispose.
Parameters
| Name | Type | Description |
|---|---|---|
spriteSheet |
UnityEngine.Texture2D | |
frameGrid |
System.Int32 |
Returns
System.Boolean — No return description is available.
LoadFromTexture(Texture2D, int, float)
Section titled “LoadFromTexture(Texture2D, int, float)”public bool LoadFromTexture(Texture2D spriteSheet, int frameGrid, float frameInterval)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
spriteSheet |
UnityEngine.Texture2D | |
frameGrid |
System.Int32 | |
frameInterval |
System.Single |
Returns
System.Boolean — No return description is available.
GetCurrentFrame()
Section titled “GetCurrentFrame()”public Texture2D GetCurrentFrame()No description is available for this member.
Returns
UnityEngine.Texture2D — No return description is available.
Dispose()
Section titled “Dispose()”public void Dispose()No description is available for this member.