diff --git a/Runtime/Gizmos/Text/TextGizmo.cs b/Runtime/Gizmos/Text/TextGizmo.cs index 101a4fe..39fe744 100644 --- a/Runtime/Gizmos/Text/TextGizmo.cs +++ b/Runtime/Gizmos/Text/TextGizmo.cs @@ -19,7 +19,14 @@ namespace DCFApixels public TextGizmo(Vector3 position, object text, DebugXTextSettings settings) { Position = position; - Text = text.ToString(); + if(text == null) + { + Text = ""; + } + else + { + Text = text.ToString(); + } Settings = settings; }