MeshResource

A high-level representation of a collection of vertices and edges that define a shape. All models imported into the engine are measured in meters.

Constructors

Link copied to clipboard
constructor(path: String, loadType: LoadType = LoadType.FROM_ASSETS)

Constructs a mesh resource via file path.

Types

Link copied to clipboard
object Companion

Factory methods and constants for MeshResource.

Functions

Link copied to clipboard
open override fun close()

Releases this resource when explicit manual ownership is required, such as after toGlobal.

Link copied to clipboard
fun getBlendShapeNames(): Array<String>

Gets the names of all blend shapes in the mesh.

Link copied to clipboard

Gets the bounding box information of the model.

Link copied to clipboard

Gets the skeleton information.

Link copied to clipboard
fun hasSkeleton(): Boolean

Returns whether this mesh has a skeleton (i.e., is a skinned mesh).

Link copied to clipboard
fun replaceWithMeshModel(model: MeshModel, bounds: BoundingBox? = null): Boolean

Replaces the geometry of this MeshResource with data from a MeshModel.