Question by
Jiraiyah · May 21, 2018 at 11:34 AM ·
gameobjecteditor-scriptingchangeeventselection
inspector button to capture a new selected object in scene or hierarchy view
Hi I'm trying to have a component with a button in the inspector, I already know how to do the inspector section to show the button and call a method, why i want as the behavior, is for the method to wait for a new game object being selected either in scene view or hierarchy view and capture and return the game object to code so that within that editor code i can do the rest of stuff i want to do with this new clicked object, how to achieve this game object clicking capture?
thanks
Comment