Skip to content

Class: SpriteKeyFrame

SpriteKeyFrame represents a key frame, which is a material to apply to a Sprite for a duration of frames.

Table of contents

Constructors

Properties

Constructors

constructor

+ new SpriteKeyFrame(material: Material, frameCount: number): SpriteKeyFrame

Parameters:

Name Type
material Material
frameCount number

Returns: SpriteKeyFrame

Properties

frameCount

frameCount: number

Number of frames to render this Key Frame for.


material

material: Material

Material to apply when rendering the Key Frame.