I have an ObjectField
in the UI Builder (UI Toolkit) and want to specify the type.
The type should be a MonoBehaviour
that also implements an interface that I defined (MyInterface
).
Entering UnityEngine.MonoBehaviour, UnityEngine.CoreModule
under Type
will type it to Monobehaviour
correctly but I could not figure out how to include MyInterface
as well and get it to work.
If I enter just the interface I get the error message: Type attribute type must derive from UnityEngine.Object
. So that is also not an option.