Aego Playground

Sprite Renderertype

component engine.SpriteRenderer

Draws a texture region at the node transform.

Blendfield

field Blend int

How the sprite blends with what is behind it: premultiplied alpha, opaque or additive.

Filterfield

field Filter int

Texture sampling: nearest keeps pixel art sharp, linear smooths it.

FlipXfield

field FlipX bool

Mirrors the sprite horizontally.

FlipYfield

field FlipY bool

Mirrors the sprite vertically.

Layerfield

field Layer int

Sorting layer. Higher layers are drawn on top of lower ones.

Orderfield

field Order int

Order inside the layer. Higher values are drawn later, on top.

Originfield

field Origin Vec2

Pivot in normalized sprite space. (0.5, 0.5) is the center, (0, 0) the top-left corner.

Sizefield

field Size Vec2

Size in world units. Zero uses the texture size divided by the camera zoom.

Spritefield

field Sprite AssetRef<texture>

Texture or atlas region to draw. Empty draws a solid rectangle in the tint color.

Tintfield

field Tint Color

Color multiplied with the texture. Alpha controls transparency.