ドキュメント

Unity Engine

Unity Engine

parsedText

The text as it is laid out, after rich text tags are parsed out and text transforms are applied. TextElement.Glyph.textRange indexes into this string.
読み終わるまでの所要時間 1 分最終更新 20日前

Definition

public string parsedText { get; }

Remarks

The value depends on resolved styles, so it is only available once the element is attached to a panel and its styles have been resolved (after the first panel update following attachment); throws InvalidOperationException before that. Style changes are reflected on the next panel update, while text changes are reflected immediately.