I want to use PlayableGraph and mix 2 animators, but it doesn’t work and there are no errors or warnings
everything is displayed in the visualizer
If the second animator is replaced by AnimationClip for example, everything works fine.
Maybe someone knows what the problem is?
public class PlayerHandsPlayableController : MonoBehaviour { [Seri - Pastebin.com - code
Visualizer:
I tried using your script, and it works fine(same graph in your img). I can blend between two controller’s result.
Maybe the scond AnimatorController’s animation clip isn’t compatiple with your model? Can you play each AnimatorController individually on handsAnimator fine?
(p.s. I slightly adjust your script, but I think there’s no difference)
public class PlayerHandsPlayableController : MonoBehaviour
{
// I left the animator's RuntimeAnimatorController field to empty
[SerializeField] private Animator animator;
// instead of taking controller from Animator, I just directly serialize controllers
[SerializeField] private RuntimeAnimatorController handsAnimatorController;
[SerializeField] private RuntimeAnimatorController secondAnimatorController;
// rest is almost same...
}
(p.s.2 I’ve just tried the exact same thing 2 weeks ago, what a coincidence!)
Yes, it worked that way, thank you.
1 Like