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
Beiträge: 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");
Benutzeravatar
Pharan

Pharan
Beiträge: 4547

RemDust

Silly mistake, thanks :)
RemDust
Beiträge: 122

Pharan

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

Pharan
Beiträge: 4547


Zurück zu Unity