Simple Mesh Generator

$4
Publisher Glenn Korver
File size 733.84kB
Number of files 62
Latest version 1
Latest release date 2021-08-05 07:11:57
First release date 2020-09-01 09:10:15
Supported Unity versions 2018.4.2 or higher
This tool is a collection of script to easily generate a variety of 2D and 3D shapes with.
The main objective of this collection of scripts is to

1. Allow you to easily generate meshes on the fly with several types of UV sets. 2. To provide you with reusable / easy to understand methods so that you can adjust or expand the toolkit as you see fit.

Given these objectives, it does mean that these scripts are not necessarily the fastest ones out there to generate their target shape, but instead are easier to dissect.

Included shapes

2D

- Quad

- Rounded Quad

- Circle

- Pentagon / Hexagon / Octagon



3D

- Rectangle / Cube

- Sphere

- Cylinder

- Capsule

- Torus

- Helix

- Tetrahedron

- Rounded Flatsided Rectangle

- Pipe (Circle extruded over a path)



General Mesh operations

- Extrude

- Bridge

- Ridge

- Fan/CloseOff



Additional features / helpers

- Blendshape creation helper

- Save mesh to asset file

- Save mesh to Json file

- Convert Mesh to string



Each script has one or several “Generate” functions which will return the desired Mesh. Example: var mesh = CircleGenerator.Generate(0.5f, Vector3.zero);

All scripts provided can be used while in or out of Unity’s “play mode”

If you are encountering an issue with this tool or have suggestions to change / expand it, I'm open to feedback, you are free to contact me by mail or pm's.

Top Publisher Assets