The Sprite component controls world-space sprite rendering for entities.
Sprite
textureIndex
sprite.textureIndex
Gets or sets the texture used by the sprite.
number
sprite.textureIndex = 2
local sprite = entity.sprite sprite.textureIndex = 1
There was an error while loading. Please reload this page.