- Home /
Level Editor in Unity as Editor Extension
Is there some Editor Extension out there, which lets you stack boxes on top of each other or adding prefabs to the scene?
Just wanted to ask you guys real quick.
Answer by Firedan1176 · Jul 29, 2016 at 11:08 PM
These are known as modular workflows. Check out the asset store for tools, as well as packs, that can be purchased, even some for free. In the Unity preferences, you can also change the Snap settings, so that holding Shift will determine at what interval your GameObjects will 'snap' to when moving with the Move tool.
These kinds of assets are common with Medieval and Sci-Fi style games.
Is this what you're looking for, or are you wanting modular control in game?
@Firedan1176 No I don't want it in realtime. You understood me right.
I couldn't find a modular workflow in the assetstore or in google.
Could you point me into the right direction please?
It's not really clear what you actually need because "adding prefabs to the scene" can be done by simply dragging them in and "stack boxes on top of each other" can be easily done by using vertex snapping (just press and hold "v") which allows you to snap an objects vertex to another one. So what specifically do you miss in Unity / do you want improved and which way.
I certainly know there are modular asset packs with models out there, but I'm not sure if there are tools that can be customized to your own assets. You wouldn't even have to extend the editor, you could use OnDrawGizmos to create Gizmos where you would like to "attach" modular pieces, and by clicking on it (I don't remember the best way to do this, I've gotten it to work though), you could simply instantiate a GameObject/prefab there. You would also need a script attached to your prefabs that define "anchor points", as well as orientations, etc.
If you're interested in this "clicking" idea, I believe there is a way to do this, but I don't think you can do it with OnDrawGizmos. However, this guy proved otherwise. You could also try to make invisible cubes with Colliders that are generated from a Singleton OnDrawGizmos, each of which draws a single Gizmo on top of itself. Therefore, if you click on a Gizmo, it will select the GameObject that it's attached to, which is directly on top of it.
Let me know if this is the path you'd like to take. There are some other ideas using editor extensions, but that'd be more of a hassle, in my opinion.
Your answer
Follow this Question
Related Questions
Editor : dynamic asset creation and prefabs, best practice ? 1 Answer
Resize a 3D prefab without affecting scale 2 Answers
Can I reuse editor extension assets for multiple projects/games? (Accelerator Pack) 1 Answer
Dressing Room 0 Answers
Custom input from Input Manager into Asset Store package? 1 Answer