This is a Unity script that add a Cone shape to the 3D Object list in Unity.
To draw a Cone in Unity. I'm actually quite surprise that Unity don't have that shape, so I decide to spend my time to create this and share to everyone.
- Download and copy these files and folders to Assets folder in your project.
- Now you can create a cone by choose Create > 3D Object > Cone.
- Change Height, Top_radius, Bottom_radius, Sections as your wish and choose Rebuild.
- Height: The height of the Cone.
- Top_radius, Bottom_radius: The radius of the Top and the Bottom circle. If one of the radius is zero, the Cone will be a full circular cone, otherwise it will be a truncated circular cone.
- Sections: How many part the circle should be divided to, the bigger value means the smoother cone. But if you want an piramid, use 4 as the value for this parameter.
- Rebuild: Actually you need to click this button to update your Cone.
Well, I'm new to Unity, so please be mercy and make a pull request. Thank you!
I wrote this base on my own need, so if you need more than this, you could write and make a pull request.
This project is licensed under the MIT License - see the LICENSE file for details