Remove UI Controls from Json Asset picker dialog

This commit is contained in:
Wojtek Figat
2021-06-15 16:38:21 +02:00
parent a75e403b35
commit 8816e4403d

View File

@@ -92,6 +92,7 @@ namespace FlaxEditor.Content
!type.IsAbstract &&
!type.IsGenericType &&
type.Type.GetConstructor(Type.EmptyTypes) != null &&
!typeof(FlaxEngine.GUI.Control).IsAssignableFrom(type.Type) &&
!typeof(FlaxEngine.Object).IsAssignableFrom(type.Type);
}
}