Quantcast
Channel: Answers for "Unity Editor Inspector creating gameObjects in world"
Browsing index pages (4 articles)
↧

Answer by C.Malcolm

I actually wrote an Editor script which allows the user to drag and drop a prefab into a selector, then input its position, give it a name and place it. Here is the code for that: using UnityEngine;...

View Article


Answer by MakeCodeNow

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...

View Article


Answer by C.Malcolm

I actually wrote an Editor script which allows the user to drag and drop a prefab into a selector, then input its position, give it a name and place it. Here is the code for that: using UnityEngine;...

View Article

Answer by MakeCodeNow

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...

View Article
Browsing index pages (4 articles)


Latest Images