BoxOption

class BoxOption(size: Vector3)

Option for creating a box MeshResource.

Chainable setters are provided to configure the box. Each setter returns this instance.

Parameters

size

The width, height, and depth of the box, in meters. Each component must be greater than 0.

Constructors

Link copied to clipboard
constructor(size: Vector3)

Functions

Link copied to clipboard
fun setCornerRadius(cornerRadius: Float): BoxOption

Sets the corner radius.

Link copied to clipboard
fun setName(name: String?): BoxOption

Sets the debug name of the resulting mesh.

Link copied to clipboard
fun setSplitFaces(splitFaces: Boolean): BoxOption

Sets whether to split the box into separate face mesh parts.

Link copied to clipboard

Sets the box topology.