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
| Name | Type | Description |
|---|---|---|
size[get, set]
|
Vector3 | Size of the cuboid mesh. |
subdivideDepth[get, set]
|
long | Number of extra edge loops inserted along the Z axis. |
subdivideHeight[get, set]
|
long | Number of extra edge loops inserted along the Y axis. |
subdivideWidth[get, set]
|
long | Number of extra edge loops inserted along the X axis. |
Methods
| Name | Description |
|---|---|
getSize
|
|
getSubdivideDepth
|
|
getSubdivideHeight
|
|
getSubdivideWidth
|
|
setSize
|
|
setSubdivideDepth
|
|
setSubdivideHeight
|
|
setSubdivideWidth
|