We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5a69ca commit a05110aCopy full SHA for a05110a
Editor/Util/SerializedTypeReference.cs
@@ -52,6 +52,13 @@ public void SetTypeNameAndAssembly(string value)
52
_parentObject.ApplyModifiedProperties();
53
}
54
55
+ public void SetType(Type type)
56
+ {
57
+ _typeNameProperty.stringValue = TypeReference.GetTypeNameAndAssembly(type);
58
+ _guidProperty.stringValue = TypeReference.GetClassGUID(type);
59
+ _parentObject.ApplyModifiedProperties();
60
+ }
61
+
62
private void SetGUIDAssignmentFailed(bool value)
63
{
64
_guidAssignmentFailedProperty.boolValue = value;
0 commit comments