how can i detect GetBoneTransform(HumanBodyBones) is null or not null?
hey guys, i wrote these codes but i must detect that "animator.GetBoneTransform(i)!=null" and do something according to it. the gameObject has an avatar and it has no jaw bone or eye bone.
foreach (HumanBodyBones i in Enum.GetValues(typeof(HumanBodyBones)))
{
if(animator.GetBoneTransform(i)!=null)
//do something
}
or how can i get only signed bones on avatar?
btw i must do these automatic so i used all "HumanBodyBones"
Comment