Method
Parameters
id
|
PackedSpriteID
|
SpriteID of the sprite
|
size
|
Vector2i
|
Size of the sprite, untrimmed
|
sourceRect
|
Rect2i
|
Source rectangle from within packed texture, may be trimmed
|
trimOffset
|
Vector2i
|
Trim offset
|
Returns
Nothing.
Description
Constructor. Most often RB.PackedSpriteGet should be used instead of created PackedSprite manually.
See Also
SpriteSheetAsset
RB.PackedSpriteGet
See Docs
Features - Sprite Packs
|