Kurtav

is it possible to rotate bones in the timeline?

I see that you can move the parent of an animation object by adding an animator component to it.
https://youtu.be/U9gHP8V0H_k?t=1433

But that doesn't work with bones. When I start moving the white slider, all bone rotation rewrites are reset.
In code, I am rewriting the rotations of the bones in this way -
anim.UpdateLocal -= NameFunk;
anim.UpdateLocal += NameFunk;
But when I move the white slider in the timeline, I get the feeling that it cancels all subscriptions in UpdateLocal
Nemaš dopuštenje za pregledavanje privit(a)ka dodan(og)ih postu.
Avatar
Kurtav
  • Postovi: 12

Harald

Basically there is nothing that should prevent the SkeletonUtilityBone in mode Override from working when it's Transform values are set from Timeline.
Kurtav je napisao/la:But that doesn't work with bones. When I start moving the white slider, all bone rotation rewrites are reset.
In code, I am rewriting the rotations of the bones in this way -
SkeletonUtility and all SkeletonUtilityBone children are essentially subscribing to UpdateLocal as well to follow or override any rotation values. So if you subscribe to UpdateLocal yourself and modify the local rotation of the same bone, the last applied rotation will overwrite any previous assignments. Did you mean that by "all bone rotation rewrites are reset"?
Avatar
Harald

Harri
  • Postovi: 4110

Kurtav

Harald je napisao/la: Did you mean that by "all bone rotation rewrites are reset"?
Overwriting bone rotations (Animation Track) stops working in my timeline when I add a Spine Animation State Track component. How do you combine them so that both of these components work in the timeline?

Avatar
Kurtav
  • Postovi: 12

Harald

Thanks for the additional information. The problem is most likely only occurring when you are not in play mode and are playing back the animation via the Timeline play button, or via scrubbing the timeline cursor. At least this is what we could reproduce. Unfortunately there are currently some limitations that apply when previewing Timeline tracks outside of play mode. This is briefly mentioned here on the spine-unity documentation pages:
http://esotericsoftware.com/spine-unity#Spine-AnimationState-Track je napisao/la:"Edit mode preview mixing may look different from Play Mode mixing. Please check in actual Play Mode to see the actual results. "
Could you please have a try if playback when in play mode is as expected? Note that you can still scrub in the Timeline and hit the Timeline play button when in play mode.
Avatar
Harald

Harri
  • Postovi: 4110


Natrag na Unity