Summary
Adds all bones that incluence skinned meshes to the `bones`.
Syntax
public static void GatherSkinnedBones(HashSet<Transform> bones, Transform root, SkinnedMeshRenderer[] renderers, List<Matrix4x4>[] rendererBindPoses, NativeArray<BoneWeight1>[] rendererBoneWeights, out Transform[] skinnedBones)
Parameters
Name |
Type |
Description |
bones |
HashSet<Transform> |
|
root |
Transform |
|
renderers |
SkinnedMeshRenderer[] |
|
rendererBindPoses |
List<Matrix4x4>[] |
|
rendererBoneWeights |
NativeArray<BoneWeight1>[] |
|
skinnedBones |
Transform[] |
|
Return Value