com.wallstop-studios.unity-helpers 2.0.0-rc11 → 2.0.0-rc12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -92,9 +92,9 @@ namespace UnityHelpers.Core.Extension
|
|
|
92
92
|
|
|
93
93
|
object ValueFormat(object value)
|
|
94
94
|
{
|
|
95
|
-
if (value is Object obj
|
|
95
|
+
if (value is Object obj)
|
|
96
96
|
{
|
|
97
|
-
return obj.name;
|
|
97
|
+
return obj != null ? obj.name : null;
|
|
98
98
|
}
|
|
99
99
|
return value?.ToString();
|
|
100
100
|
}
|