Skip to content

Enumeration: SpriteSizeMode ​

Common component classes hoisted to the top level too.

Enumeration Members ​

Enumeration MemberValueDescription
Custom"custom"Sprite renders at the host UITransform's width/height; the caller is responsible for setting those. Use when the sprite is a stretched / 9-slice-style fill.
Raw"raw"Sprite renders at the texture's natural pixel dims; the host UITransform width/height are overwritten with that size when the asset resolves. SpriteSizeSystem adopts it in PreRender (from the asset) so Layout/Widget/ScrollView see the real footprint the same frame. Default for new sprites — it's what "drop a texture in and have it just work" expects.

© 2026 PlayAdGentic