Skip to content

AnimationPlayer

ClassAssetInventoryAssetInventory.Editor
public class AnimationPlayer

No description is available for this type.

public string Guid { get; }

No description is available for this member.

Returns

System.String — No return description is available.

public bool IsLoaded { get; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

public AnimationPlayer(string guid)

No description is available for this member.

Parameters

Name Type Description
guid System.String

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.

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.

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.

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.

public Texture2D GetCurrentFrame()

No description is available for this member.

Returns

UnityEngine.Texture2D — No return description is available.

public void Dispose()

No description is available for this member.