Back to API Reference
Class

InlineSprite

Inherits:InlineMedia

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{ get; set }

The sprite to draw.

public Color Color{ get; set }

Tint color multiplied with the sprite.

public bool PreserveAspect{ get; set }

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