Back to API Reference
Class

InlineObject

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

Remarks

Inline objects are referenced by name in the text and rendered as UI prefabs that flow with the text like characters. All metrics are in em units (relative to fontSize): width=1, height=1 means the object is fontSize x fontSize pixels advance=1 means the cursor moves by fontSize pixels after this object bearingX/Y are offsets relative to fontSize
public void UpdateInstances()
public string name
public RectTransform prefab
public float width

Width in em units (1 = fontSize).

public float height

Height in em units (1 = fontSize).

public float bearingX

Horizontal offset in em units.

public float bearingY

Vertical offset in em units.

public float advance

Advance width in em units (1 = fontSize).

public int activeCount