Class RichTextParser
Namespace: Unity.InteractiveTutorials
Syntax
public static class RichTextParser
Methods
RichTextToVisualElements(String, VisualElement)
Transforms HTML tags to word element labels with different styles to enable rich text.
Declaration
public static void RichTextToVisualElements(string htmlText, VisualElement targetContainer)
Parameters
Type | Name | Description |
---|---|---|
String | htmlText | |
VisualElement | targetContainer | The following need to set for the container's style: flex-direction: row; flex-wrap: wrap; |