CubeMesh


Declaration

public sealed class CubeMesh : MonoBehaviour

Description

Generates a new cube mesh and applies it to the mesh filter.

Static Properties

sharedMeshA cube mesh that can be shared across many objects (Read only).
trianglesThe triangles of the cube (Read only).
cornersThe corners of the cube (Read only).
verticesThe verticies of the cube (Read only).
uvThe UV coordinates of the cube (Read only).

Methods

ApplyApplies a new cube mesh to the mesh filter.
CreateCreates a new cube mesh.