Generate an axis-aligned cuboid PrimitiveMesh.
    public class CubeMesh : PrimitiveMesh

Generate an axis-aligned cuboid PrimitiveMesh.

The cube’s UV layout is arranged in a 3×2 layout that allows texturing each face individually. To apply the same texture on all faces, change the material’s UV property to Vector3(3, 2, 1).

Inheritance Chain

Constructors

    public CubeMesh()

Properties

    public Vector3 Size { get; set; }

Size of the cuboid mesh.

    public int SubdivideDepth { get; set; }

Number of extra edge loops inserted along the Z axis.

    public int SubdivideHeight { get; set; }

Number of extra edge loops inserted along the Y axis.

    public int SubdivideWidth { get; set; }

Number of extra edge loops inserted along the X axis.

Methods

    [Obsolete("GetSize is deprecated. Use the Size property instead.")]
    public Vector3 GetSize()

Getter for Size

    [Obsolete("GetSubdivideDepth is deprecated. Use the SubdivideDepth property instead.")]
    public int GetSubdivideDepth()

Getter for SubdivideDepth

    [Obsolete("GetSubdivideHeight is deprecated. Use the SubdivideHeight property instead.")]
    public int GetSubdivideHeight()

Getter for SubdivideHeight

    [Obsolete("GetSubdivideWidth is deprecated. Use the SubdivideWidth property instead.")]
    public int GetSubdivideWidth()

Getter for SubdivideWidth

    [Obsolete("SetSize is deprecated. Use the Size property instead.")]
    public void SetSize(Vector3 size)

Setter for Size

    [Obsolete("SetSubdivideDepth is deprecated. Use the SubdivideDepth property instead.")]
    public void SetSubdivideDepth(int divisions)

Setter for SubdivideDepth

    [Obsolete("SetSubdivideHeight is deprecated. Use the SubdivideHeight property instead.")]
    public void SetSubdivideHeight(int divisions)

Setter for SubdivideHeight

    [Obsolete("SetSubdivideWidth is deprecated. Use the SubdivideWidth property instead.")]
    public void SetSubdivideWidth(int subdivide)

Setter for SubdivideWidth

Tags: