Sprite
Sprite<
Clip>(props):Element
Draws the entity it sits in as one frame of a sprite sheet: a loop, a
held frame, and every one-shot playClip plays, the frame worked out
from the play’s tick at the tick the entity is drawn at. Every sprite
of one sheet and blend is one draw. Under the scene’s Camera2D it
lies flat on the 2D plane, or stands with upright; under a 3D camera
it faces the camera. Unity’s SpriteRenderer with its Animator, Godot’s
AnimatedSprite2D. A room draws nothing of it.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Clip extends string |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
props |
SpriteProps<Clip> |
Returns
Section titled “Returns”Element