Question by
IvayloDev · Jun 30, 2020 at 01:14 PM ·
gameobjecteditoreditor-scriptinghierarchydraggable
Set parent of dragged object to selected GameObject in hierarchy
I want to add a feature in the editor where when you drag a new object (graphic/prefab) from the project window it is parented to the selected Gameobject in the hierarchy window instead of added to the bottom as a last child.
Has anyone done that or if there a event for object added to the scene. The only thing I found was EditorApplication.hierarchyWindowChanged, which I don't think will do the job.
Comment