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.
2 parents dec1968 + 7edd58c commit 3a75560Copy full SHA for 3a75560
Assets/MixedRealityToolkit/_Core/Definitions/Utilities/SystemType.cs
@@ -59,19 +59,7 @@ public SystemType(Type type)
59
60
void ISerializationCallbackReceiver.OnAfterDeserialize()
61
{
62
- if (!string.IsNullOrEmpty(reference))
63
- {
64
- type = Type.GetType(reference);
65
-
66
- if (type == null)
67
68
- Debug.LogWarning($"'{reference}' was referenced but class or struct type was not found.");
69
- }
70
71
- else
72
73
- type = null;
74
+ type = !string.IsNullOrEmpty(reference) ? Type.GetType(reference) : null;
75
}
76
77
void ISerializationCallbackReceiver.OnBeforeSerialize() { }
0 commit comments