Fix UnityEngine.Object fields drawn as reference instead of primitive

This commit is contained in:
VladV 2022-05-25 11:07:43 +03:00
parent 3c8ddb2723
commit 7a6c2518f3

View File

@ -575,7 +575,8 @@ namespace TriInspector
}
if (property._definition.FieldType.IsPrimitive ||
property._definition.FieldType == typeof(string))
property._definition.FieldType == typeof(string) ||
typeof(UnityEngine.Object).IsAssignableFrom(property._definition.FieldType))
{
return TriPropertyType.Primitive;
}