Companion

object Companion

The companion object of MeshResource.

Functions

Link copied to clipboard
@JvmStatic
fun createBox(size: Vector3, cornerRadius: Float = 0.0f): MeshResource

Synchronously creates a box mesh resource.

Link copied to clipboard
@JvmStatic
fun createCapsule(height: Float, radius: Float): MeshResource

Synchronously creates a capsule mesh resource.

Link copied to clipboard
@JvmStatic
fun createCone(height: Float, radius: Float): MeshResource

Synchronously creates a cone mesh resource .

Link copied to clipboard
@JvmStatic
fun createCylinder(height: Float, radius: Float): MeshResource

Synchronously creates a cylinder mesh resource.

Link copied to clipboard
@JvmStatic
fun createPlane(width: Float, height: Float, cornerRadius: Float = 0.0f): MeshResource

Synchronously creates a plane mesh resource.

Link copied to clipboard
@JvmStatic
fun createSphere(radius: Float): MeshResource

Synchronously creates a sphere mesh resource.

Link copied to clipboard
@JvmStatic
fun createTorus(outerRingRadius: Float, innerRingRadius: Float): MeshResource

Synchronously creates a torus mesh resource.

Link copied to clipboard
@JvmStatic
fun createVideoPanel(width: Float, height: Float, cornerRadius: Float): MeshResource

Creates a mesh resource for a video panel.

Link copied to clipboard
fun load(path: String, loadType: LoadType = LoadType.FROM_ASSETS): MeshResource

Loads a MeshResource via file path.

Link copied to clipboard
@JvmStatic
fun loadFromMeshAnchor(anchorUUID: UUID): MeshResource

Load mesh resource from mesh anchor.

Link copied to clipboard
@JvmStatic
fun loadFromPlaneAnchor(anchorUUID: UUID): MeshResource

Load mesh resource from plane anchor.