When i create an ObjectField inside the uxml file it appears in the inspector with no type.
uxml:
<uie:ObjectField name="Texture2D" binding-path="icone" label="Object" allow-scene-objects="false"/>
What I did to work around this problem is to change the type via code:
root.Query<ObjectField>("Texture2D").ForEach((obj) => {
obj.objectType = typeof(Texture2D);
});
In the documentation does not have any use example .
How can i add the type in a ObjectField by uxml?