Struct CubeMesh

Generate an axis-aligned cuboid PrimitiveMesh.

struct CubeMesh ;

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).

Properties

NameTypeDescription
size[get, set] Vector3Size of the cuboid mesh.
subdivideDepth[get, set] longNumber of extra edge loops inserted along the Z axis.
subdivideHeight[get, set] longNumber of extra edge loops inserted along the Y axis.
subdivideWidth[get, set] longNumber of extra edge loops inserted along the X axis.

Methods

NameDescription
getSize
getSubdivideDepth
getSubdivideHeight
getSubdivideWidth
setSize
setSubdivideDepth
setSubdivideHeight
setSubdivideWidth