mirror of
https://github.com/DCFApixels/Unity-DebugX.git
synced 2025-11-13 02:05:55 +08:00
fix text gizmo null exception
This commit is contained in:
parent
7dc80baf05
commit
ca06523776
@ -19,7 +19,14 @@ namespace DCFApixels
|
|||||||
public TextGizmo(Vector3 position, object text, DebugXTextSettings settings)
|
public TextGizmo(Vector3 position, object text, DebugXTextSettings settings)
|
||||||
{
|
{
|
||||||
Position = position;
|
Position = position;
|
||||||
Text = text.ToString();
|
if(text == null)
|
||||||
|
{
|
||||||
|
Text = "";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Text = text.ToString();
|
||||||
|
}
|
||||||
Settings = settings;
|
Settings = settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user