Back to API Reference
Class
InlineMedia
abstract
Common entry-data base for inline-flowed media (InlineSprite, InlineObject). Carries the name and shared presentation data; the renderable payload is added by the concrete subclass.
Remarks
Pure shared data: one entry may be referenced by many components at once (e.g. through a shared UniTextSprites asset), so it holds no per-occurrence runtime state — the host InlineMediaModifier<TEntry, TWrapper> owns a wrapper pool per component. All metrics are in em units (relative to fontSize): size = (1,1) means the media is fontSize x fontSize pixels advance = 1 means the cursor moves by fontSize pixels after this media bearingOffset shifts the media relative to fontSize pivot uses normalized RectTransform coordinates and rotation uses degrees. These presentation values are the weakest layer; keyed overrides, default parameters, and tag attributes can replace them per occurrence.
Derived Types(2)
Types that inherit from InlineMedia.
public Vector2 Size{ get; set }Size in em units (1 = fontSize on each axis).
public Vector2 BearingOffset{ get; set }Offset from the layout position in em units.
public Vector2 Pivot{ get; set }Normalized anchor in the size box: content that does not fill the box is held to it, and rotation turns about it. (0,0) is bottom-left, (1,1) top-right.
