I’m working on an EditorWindow and I need the selected object in the window (the inspector) NOT the scene view, so no Selection.activeObject, or anything like that. How can I get that object? I know there’s GUIUtility.GetControlID(), but I have no idea which field is which and I would prefer to just get the object.
Dude… please, I explicitly said no comments about Selection.activeObject. I don’t need the selected scene object. I need the selected field that is in the selected object in the scene view. Field, as in variable, belonging to the selected object.
Sorry, I just phrased it as an object, because I needed the object, not a number that represents the object, or something and I believe I actually wrote “field” in there somewhere. But it doesn’t matter because I found the solution.