MeshExt.HasBoneInfluence Method (SkinnedMeshRenderer, Transform, Single)

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 bool HasBoneInfluence(
	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 to consider significant influence

Return Value

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

See Also

Reference

MeshExt Class
HasBoneInfluence Overload
UltimateXR.Extensions.Unity.Render Namespace