Editor script tool that extends the Unity transform component to place element on spherical surfaces.
-
Download the CustomTransformComponent.cs file
-
Put it in your Unity Project, inside your "Editor" folder (Create one if you need to) :
- Make sure the spheres you want to be targetted are tagged with "Planet", like so:
- All of your transform components are now equiped with the Spherical Transform tool.
Choose an Axis, and click on the buttons to make it work, it will turn off when focus is lost for performance reasons:
P.S. It doesnt work too well with global transform handles, so make sure you drag your objects using the Local transform handles