Quantcast
Channel: Answers for "Unity Editor Inspector creating gameObjects in world"
Viewing all articles
Browse latest Browse all 4

Answer by MakeCodeNow

$
0
0
I assume you already have a custom Editor subclass? If not, you'll need one. From there, take a look at the [DragAndDrop][1] docs. You'll need to check for Drag events in OnInspectorGUI and handle them correctly when the drag/drop is over your inspector. You can also just make a List of GameObject's in your MonoBehavior, in which case Unity will do all of the editor drag-and-drop for you in the default inspector. [1]: http://docs.unity3d.com/Documentation/ScriptReference/DragAndDrop.html

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>