RemDust

Hi guys !
I try to change the targeted bone by my bonefollower component but even if I can see the bone name changing in the Inspector at runtime it doesn't actually change the bone followed :wonder:

What am I doing wrong ?!

Thanks :)
RemDust
Posts: 122

Pharan

boneName is only checked on start. Checking it every frame for changes would be terrible for performance.

The way to change the target bone is to change boneFollower.bone
You can find the bone reference by using skeletonAnimation.Skeleton.FindBone("my bone name");
User avatar
Pharan

Pharan
Posts: 4444

RemDust

Silly mistake, thanks :)
RemDust
Posts: 122

Pharan

We'll try make the docs more clear on it. :)
User avatar
Pharan

Pharan
Posts: 4444


Return to Unity