Hi, i’m working in a custom editor window.
I need an object field to define a graph for my system, but the problem is neither i know how to retrieve the current object in the Object field or register change events on the object field.
Remember that you need to be using both UnityEditor.UIElements and UnityEngine.UIElements since ObjectField is in the UinityEditor.UIElemnets namespace but RegisterValueChangedCallback and the CangeEvent are both in the UnityEngine.UIElements namespace which is inconvenient