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

The companion object of MeshResource.

Functions

Link copied to clipboard
open override fun close()

You need to manually release the resource to free the memory it occupies.

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

Checks if the mesh has a skeleton. That is to say, whether it is a skinned mesh.