mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 08:18:49 -05:00
Fix UnityEngine.Object fields drawn as reference instead of primitive
This commit is contained in:
parent
3c8ddb2723
commit
7a6c2518f3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user