CubeMesh3


Declaration

public sealed class CubeMesh3 : MonoBehaviour

Description

Generates a new cube mesh with 3 submeshes (one for each axis) and applies it to the mesh filter.

Static Properties

trianglesXThe triangles of the cube for the faces in the x-axis (Read only).
trianglesYThe triangles of the cube for the faces in the y-axis (Read only).
trianglesZThe triangles of the cube for the faces in the z-axis (Read only).

Methods

ApplyApplies a new cube mesh to the mesh filter.
CreateCreates a new cube mesh with 3 submeshes (one for each axis).