Skip to content

Commit 1602288

Browse files
committed
fix: Fixed exception in Reference property drawer
1 parent 58c3812 commit 1602288

File tree

6 files changed

+3
-3
lines changed

6 files changed

+3
-3
lines changed

.GenericUnityInternals/GenericUnityEditorInternals/GenericTypeHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ public static Type GetConcreteType(Type genericType)
2929
{
3030
if (typeof(MonoBehaviour).IsAssignableFrom(genericType))
3131
{
32-
return BehavioursDatabase.TryGetConcreteType(genericType, out Type concreteType)
32+
return GenericTypesDatabase<MonoBehaviour>.TryGetConcreteType(genericType, out Type concreteType)
3333
? concreteType
3434
: genericType;
3535
}
3636

3737
if (typeof(ScriptableObject).IsAssignableFrom(genericType))
3838
{
39-
return ScriptableObjectsDatabase.TryGetConcreteType(genericType, out Type concreteType)
39+
return GenericTypesDatabase<ScriptableObject>.TryGetConcreteType(genericType, out Type concreteType)
4040
? concreteType
4141
: genericType;
4242
}

.GenericUnityInternals/GenericUnityEditorInternals/GenericUnityEventDrawer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ private static string GetBehaviourShortName(Type unityObjectType)
322322

323323
private static string GetScriptableObjectShortName(Type unityObjectType)
324324
{
325-
return ((unityObjectType is GenericScriptableObject) || unityObjectType.BaseType.IsGenericType) ? TypeUtility.GetNiceNameOfGenericType(unityObjectType.BaseType) : unityObjectType.Name;
325+
return unityObjectType.BaseType.IsGenericType ? TypeUtility.GetNiceNameOfGenericType(unityObjectType.BaseType) : unityObjectType.Name;
326326
}
327327
}
328328
}

GenericUnityEditorInternals.dll

0 Bytes
Binary file not shown.

GenericUnityEditorInternals.pdb

0 Bytes
Binary file not shown.

OdinInternals.dll

0 Bytes
Binary file not shown.

OdinInternals.pdb

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)