MeshExt.GetBoneInfluenceVertexCount Method

Computes the number of vertices that a bone influences in a skinned mesh.

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

Syntax

C#

public static int GetBoneInfluenceVertexCount(
	SkinnedMeshRenderer skin,
	Transform bone,
	float weightThreshold = 0.5f
)

Parameters

 

skin
Type: SkinnedMeshRenderer
Skinned mesh
bone
Type: Transform
Bone to check
weightThreshold (Optional)
Type: System.Single
Weight above which will be considered significant influence

Return Value

Type: Int32
Number of vertices influenced by bone with a weight above weightThreshold.

See Also

Reference

MeshExt Class
UltimateXR.Extensions.Unity.Render Namespace