Skip to content

AnimationClip.FromSpriteSheet(string, int, int, int, int, int, int, float, PlaybackMode, string, ITexture) Method

Definition

Namespace: Brine2D.Animation

Creates an animation from a sprite sheet with uniform frame sizes.

public static Brine2D.Animation.AnimationClip FromSpriteSheet(string name, int frameCount, int frameWidth, int frameHeight, int columns, int startX=0, int startY=0, float frameDuration=0.1f, Brine2D.Animation.PlaybackMode playbackMode=Brine2D.Animation.PlaybackMode.Loop, string? texturePath=null, Brine2D.Rendering.ITexture? texture=null);

Parameters

name System.String

frameCount System.Int32

frameWidth System.Int32

frameHeight System.Int32

columns System.Int32

startX System.Int32

startY System.Int32

frameDuration System.Single

playbackMode PlaybackMode

texturePath System.String

texture ITexture

Returns

AnimationClip