- Home /
Question by
xteven9 · Apr 24, 2016 at 07:33 AM ·
editorinspectoreditor-scriptingselection
Change the target of inspector from script
Hi everyone,
In the inspector, when we double-click on a prefab/asset field, it changes the target to that asset. Is there a way to it programmatically? I tried changing Selection.activeObject
but doesn't seem to work.
p.s. I'm writing a node editor, it edits a Canvas asset which contains all nodes as subassets. When a node is selected I want the inspector to focus on that specific node.
Thank you!
Comment