RenderMesh
Lens Studio v1.0.0+
Scripting Name: Asset.RenderMesh
Inherits from Asset
Description
Represents a mesh asset. See also: RenderMeshVisual.
Properties
aabbMax
: vec3
Returns the maximum value in each dimension of the axis-aligned bounding box containing this mesh.
aabbMin
: vec3
Returns the minimum value in each dimension of the axis-aligned bounding box containing this mesh.
control
: RenderObjectProvider
The RenderObjectProvider for this RenderMesh, which can provide more controls depending on the mesh type. See also: FaceRenderObjectProvider
indexType
: MeshIndexType
The index data type used by this mesh.
topology
: MeshTopology
The topology type used by this mesh.
Inherited Methods
isSame(SerializableWithUID other)
: Boolean
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
getTypeName()
: String
Returns the name of this object’s type.
isOfType(String type)
: Boolean
Returns true if the object matches or derives from the passed in type.
Inherited Properties
name
: String
The name of the Asset in Lens Studio.
Examples
//@input Component.RenderMeshVisual meshComponent
//@input Asset.RenderMesh mesh
script.meshComponent.mesh = script.mesh;
Still Looking for help?
Visit Support