MeshExt.HasBoneInfluence Method (BoneWeight, Int32, Single)

Checks whether a given bone index has influence on a skinned mesh vertex.

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

Syntax

C#

public static bool HasBoneInfluence(
	 in BoneWeight boneWeight,
	int boneIndex,
	float weightThreshold = 0.5f
)

Parameters

 

boneWeight
Type: BoneWeight
Vertex’s bone weight information
boneIndex
Type: System.Int32
Bone index
weightThreshold (Optional)
Type: System.Single
Weight above which will be considered significant influence

Return Value

Type: Boolean
Whether the bone influences the vertex in a significant amount

See Also

Reference

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