CubeMesh6


Declaration

public sealed class CubeMesh6 : MonoBehaviour

Description

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

Static Properties

trianglesRightThe triangles of the cube for the right face (Read only).
trianglesLeftThe triangles of the cube for the left face (Read only).
trianglesTopThe triangles of the cube for the top face (Read only).
trianglesBottomThe triangles of the cube for the bottom face (Read only).
trianglesFrontThe triangles of the cube for the front face (Read only).
trianglesBackThe triangles of the cube for the back face (Read only).

Methods

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