Back to API Reference
Class

InlineSprite

Defines an inline sprite that can be embedded within text flow.

Remarks

Pure data: the host SpriteModifier owns lifecycle state (instance count, generated GameObjects), so the same InlineSprite instance can safely be referenced by multiple modifiers.
public Sprite sprite

The sprite to draw.

public Color color

Tint color multiplied with the sprite.

public bool preserveAspect

If true, the sprite is letterboxed inside the width x height box to keep its native aspect ratio.