#TypeManager filled with non-component object types?

1 messages · Page 1 of 1 (latest)

unborn trout
#

Has anyone noticed that TypeManager is filled with a bunch of types that (as far as I know) cannot be placed on an Entity? For example:

  • Unity.Entities.Editor.ArchetypesWindow
  • UnityEditor.AudioSourceInspector
  • UnityEditor.VFX.Block.ColorOverLife

These all get returned when calling TypeManager.GetAllTypes(). In this case, there's thousands of them -- basically every single Unity type extending from Object. This isn't a bug exactly, but it's pretty wasteful to be iterating through thousands of these types whenever the Entities package operates over all types.

Maybe TypeManager.AddUnityEngineObjectTypeToListIfSupported(type) should be made a bit more strict?