Create Mesh

This module uses one or more VMeshes and create actual Unity meshes from it. Unless you link spots to this module, all meshes are being created. If you link the optional spots slot, meshes are created by iterating the spots provided.

Slots

Input

  • VMesh[] - array of VMeshes
  • Spots - spots to use for placement

Reference

General

Combine

If enabled, meshes will be combined into a single mesh. Additional meshes are created if VertexCount exceeds 65k.

Group Meshes

Only if spots provided

If enabled, meshes will be combined by their VMesh index

Add Normals

Whether normals should be calculated:

  • Yes - always calculate normals
  • No - never calculate normals
  • Auto - calculate normals only if the input VMeshes don't provide them
Add Tangents

Whether tangents should be calculated:

  • Yes - always calculate tangents
  • No - never calculate tangents
  • Auto - calculate tangents only if the input VMeshes don't provide them
Add UV2

If enabled, lightmap UV's will be created

Make Static

If enabled, meshes will have the Static flag set

Layer

The layer to use

Renderer

Options are the same as Unity's MeshRenderer options

Collider

Defines the collider type to be added to the created meshes:

Convex

Mesh Collider only

Whether a convex MeshCollider should be created

Auto Update Colliders

If enabled, MeshColliders will automatically update if the mesh changes

Material

The physics material to assign to the MeshCollider

Export

Save To Scene

Creates an individual GameObject containing the mesh(es), thus detaching the managed resources from the generator.

Once you created a detached GameObject holding all meshes, you can easily prefab them by dragging the GameObject to the project window!

Save Mesh Asset(s)

Create individual mesh assets for all meshes

Last modified: 2015/10/08 19:59 by Jake