Sprite is a component for storing information around a sprite and how it should be drawn. Contains information around the colour to use if no texture is provided and the z order for deciding which order to draw the sprite in. Can contain texture information such as bounds and a texture.
Table of contents
Inherited from: Component
• key: string
• material: Material
Material to apply when rendering the Sprite.
• transformedShape: AABB
• zOrder: number
Order which the sprite should appear, if it should appear infront/behind other objects, the higher the value the more precedence it is given and will appear in front of objects with a lower value.
Static KEY: sprite= "sprite"
Key of the sprite component.
Static MESSAGE_ADD: component_add= "component_add"
Static MESSAGE_REMOVE: component_remove= "component_remove"
▸ Free(): void