drawlabel 3 - eisclimber/ExPresS-XR GitHub Wiki
Method in GizmoUtils
Draws a text at a position if it is not empty with the given color, fontSize, fontStyle and text anchor.
public static void DrawLabel(string text, Vector3 position, Color color, FontStyle fontStyle = FontStyle.Normal, int fontSize = DEFAULT_LABEL_SIZE, TextAnchor alignment = TextAnchor.UpperLeft, Transform atTransform = null)| Name | Description |
|---|---|
string text |
Text to be displayed. |
UnityEngine.Vector3 position |
Position to draw at. |
UnityEngine.Color color |
Color of the text. |
int fontSize |
Font size of the text. |
UnityEngine.FontStyle fontStyle |
Font style (normal, italic, bold). |
UnityEngine.TextAnchor alignment |
Alignment of the text. |
UnityEngine.Transform atTransform |
Transform context to draw the gizmo. |