Skip to content

Sprite ​

RenderingScripts: SpriteComponent

From a script ​

ts
import { SpriteComponent } from "mmpx";

const sprite = this.entity.TryGetComponent(SpriteComponent);

Full API: SpriteComponent.

Fields ​

FieldTypeDefaultDescription
Sprite Frame
assetId
texture asset—
Color
tint
colour#FFFFFF
Size Mode
sizeMode
"raw" | "custom""raw"raw adopts the texture size; custom keeps the UITransform size
Material
material
material asset—A sprite-domain material — a shader drawing this component

Fill ​

FieldTypeDefaultDescription
Type
fillType
"none" | "horizontal" | "vertical""none"
Start
fillStart
number (0 … 1)0Where the shown band starts — from the left (horizontal) or the bottom (vertical)
Range
fillRange
number (0 … 1)1

© 2026 PlayAdGentic