Hey all,
I’m making a EditorWindow with a few ObjectFields to let the user assign different GameObjects to each field. Some fields only allow you to assign non-scene objects, while the others can use any GameObject…that’s the problem though, I want to restrict those GameObject fields to only Prefabs, that way you can assign a non-Prefab object to them.
I need to restrict those fields to only allow PrefabType.Prefab objects and not PrefabType.ModelPrefab objects. How can I get this to work? Can I do something like ‘typeof(PrefabType.Prefab)’ (I tried that and it doesn’t like it…).
Any help would be greatly appreciated as always
Thanks for your time…
Stephane