I’m making a custom GUI and I want to make it so that when you click a button, that button’s object is displayed in the Inspector.
I’m sure this is really easy, but I can’t see to find it in the documentation…
Any ideas?
I’m making a custom GUI and I want to make it so that when you click a button, that button’s object is displayed in the Inspector.
I’m sure this is really easy, but I can’t see to find it in the documentation…
Any ideas?
Sorry, I figured it out.
Selection.activeObject = .gameObject;
I feel silly…