AsepriteClipLoader.Load Method
Definition¶
Namespace: Brine2D.Animation
| Overloads | |
|---|---|
| Load(string, ITexture, string, string) | Synchronously loads all tagged animation clips from an Aseprite JSON export file. |
| Load(Stream, ITexture, string, string, string) | Synchronously loads all tagged animation clips from a System.IO.Stream containing Aseprite JSON. |
| Load(ReadOnlyMemory<byte>, ITexture, string, string, string) | Synchronous overload for LoadAsync(ReadOnlyMemory<byte>, ITexture, string, string, string, CancellationToken). Parses a UTF-8 encoded Aseprite JSON payload already in memory. |
AsepriteClipLoader.Load(string, ITexture, string, string) Method¶
Synchronously loads all tagged animation clips from an Aseprite JSON export file.
public System.Collections.Generic.IReadOnlyList<Brine2D.Animation.AnimationClip> Load(string path, Brine2D.Rendering.ITexture? texture=null, string? texturePath=null, string defaultClipName="default");
Parameters¶
path System.String
texture ITexture
texturePath System.String
defaultClipName System.String
Returns¶
System.Collections.Generic.IReadOnlyList<AnimationClip>
AsepriteClipLoader.Load(Stream, ITexture, string, string, string) Method¶
Synchronously loads all tagged animation clips from a System.IO.Stream containing Aseprite JSON.
public System.Collections.Generic.IReadOnlyList<Brine2D.Animation.AnimationClip> Load(System.IO.Stream stream, Brine2D.Rendering.ITexture? texture=null, string? texturePath=null, string sourceName="<stream>", string defaultClipName="default");
Parameters¶
stream System.IO.Stream
texture ITexture
texturePath System.String
sourceName System.String
defaultClipName System.String
Returns¶
System.Collections.Generic.IReadOnlyList<AnimationClip>
AsepriteClipLoader.Load(ReadOnlyMemory\<byte>, ITexture, string, string, string) Method¶
Synchronous overload for LoadAsync(ReadOnlyMemory<byte>, ITexture, string, string, string, CancellationToken). Parses a UTF-8 encoded Aseprite JSON payload already in memory.
public System.Collections.Generic.IReadOnlyList<Brine2D.Animation.AnimationClip> Load(System.ReadOnlyMemory<byte> utf8Json, Brine2D.Rendering.ITexture? texture=null, string? texturePath=null, string sourceName="<memory>", string defaultClipName="default");
Parameters¶
utf8Json System.ReadOnlyMemory<System.Byte>
texture ITexture
texturePath System.String
sourceName System.String
defaultClipName System.String