Hey everybody,
Lately I’ve been entertaining the idea of adding some custom tools to Unity and making them available to the community so that we can all have a slicker workflow (Unity already has a great workflow but it doesn’t hurt to improve)
I looked around in the Unify wiki and looked at the existing ScriptWizards to get an idea on how to start but all of them seem to revolve around a single command or a wizard dialog. I want to create tools that feel like the Move/Rotate/Scale tools in the Editor, so I want my tool to be able to interact with the user mouse and keyboard input.
Here’s a simple example of the kind of thing I want to achieve. I’m sure most of you know about the TransformCopier that’s available over at Unify Wiki. You select an object, run TransformCopier->Copy Transform. Then you select another object and run TrasnformCopier->Paste Transform, and the 2nd object you selected obtains the transform of the 1st one.
I wanted to improve this tool by making it work like this. You select an object in the Editor viewport. As you move your mouse over other objects in the scene, a line is drawn from your currently selected object to the object that the ray cast from the camera through your mouse position hits, showing you that when you click the LMB, it will move/rotate/scale your selected object according to the transform of the object that the ray hit. This is basically how the Transfer tool works in Cinema4D and I’ve found it to be really convenient so I want to make it available to my fellow Unity users.
Any ideas on how to create an in-editor tool that can help me get started on this? Would I have to go the .dll plugin route? (Extensions, I believe is what they are called)
Thank you,
Yilmaz