fix text gizmo null exception

This commit is contained in:
DCFApixels 2025-10-12 21:19:01 +08:00
parent 7dc80baf05
commit ca06523776

View File

@ -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;
}