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
Сообщения: 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");
Аватара пользователя
Pharan

Pharan
Сообщения: 4542

RemDust

Silly mistake, thanks :)
RemDust
Сообщения: 122

Pharan

We'll try make the docs more clear on it. :)
Аватара пользователя
Pharan

Pharan
Сообщения: 4542


Вернуться в Unity