2022.1.1551.1 ConvexEllipseGenerator
Overview
Creates an ellipse of given radii and rotation on an game object. With the ability to only create part of that ellipse
Where to find
The feature can be found under Utility > Mesh Tools > Create Shape.
And the mono behavior variant can be foundunder Mechanics > Collider Generators > Conus Ellipse or by clicking on game object going to Add Component and adding a Convex Ellipse Collider Generator.
Feature Layout
Will only describe Ellipse window.
Shape Type | Type of shape given to game objects.
|
Center | The center of the created ellipse in world space. |
Local Up Direction | The direction the local up is in (in this direction the y radius will be drawn). |
Tessellation | Amount the ellipse is tessellated. |
Radii | The radii of the ellipse in units. |
Create Shape | Button to press to add shape to selected game objects |
Radii | The radii of the ellipse in units. |
Tessellation | The amount the ellipse is tessellated. |
Minimum Percentage Main Ellipse | Start percentage of partial ellipse. |
Maximum Percentage Main Ellipse | End percentage of partial ellipse. |
Minimum Percentage Ellipse Circles | Start percentage of partial ellipse circles. |
Maximum Percentage Ellipse Circles | End percentage of partial ellipse circles. |
Mesh Name Prefix | The prefix added to the mesh name (if empty standard name for mesh taken). |
(Re)Generate Collider | (Re)Generates the ellipse from given values. |
Store Collider | Button to press if want to store the created collider in Unity project. |
How to use
Window:
Select game objects want to given ellipse.
Indicate where center of ellipse needs to be.
Set local up direction to rotated the ellipse to right orientation.
Set local radii of the ellipse.
Set amount of tessellation.
Press Create Shape. Now the selected objects with Mesh Filter will have their meshes replaced with ellipse and rest will have a Mesh Filter added and puts the ellipse into that.
Inspector:
Add Convex Ellipse Collider Generator to game object.
Set the local radii and tessellation.
Press (Re)Generate Collider. This will create a mesh filter and collider to the object to put the conus in. If the gameobject already has a mesh filter a child object will be made with the conus.
Press Store Collider if want to save the ellipse in Unity project.
Ellipse mesh is stored in Resources/Colliders folder
Prespective Documentation