MeshExt.ExtractSubMesh Method

Creates a new mesh from a skinned mesh renderer based on a reference bone and an extract operation.

Namespace: UltimateXR.Extensions.Unity.Render
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static Mesh ExtractSubMesh(
	SkinnedMeshRenderer skin,
	Transform bone,
	MeshExt.ExtractSubMeshOperation extractOperation,
	float weightThreshold = 0.5f
)

Parameters

 

skin
Type: SkinnedMeshRenderer
Skin to process
bone
Type: Transform
Reference bone
extractOperation
Type: UltimateXR.Extensions.Unity.Render.MeshExt.ExtractSubMeshOperation
Which part of the skinned mesh to extract
weightThreshold (Optional)
Type: System.Single
Bone weight threshold above which the vertices will be extracted

Return Value

Type: Mesh
New mesh

See Also

Reference

MeshExt Class
UltimateXR.Extensions.Unity.Render Namespace