hi, i want to create something like a palette in an editor window where i can drag game objects into the scene view and place them (the same way i would drag a prefab)
so basically i want to have something like
- element in editorwindow that can respond to a drag event
- on the drag callback or w/e i instantiate a game object from a prefab and pass it to the drag event
- the created drag object can be dropped inside the scene view like any other prefab
so i assume i’d have to use Unity - Scripting API: DragAndDrop
but which gui element? how do i detect/enable the drag operation? will the scene simply accept a GameObject if i put it in DragAndDrop.objectReferences and behave as expected?
//edit, sorry, this probably belongs into the gui forum