Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Use the same Paramters to control multiple Animators?

Discussion in 'Animation' started by DanWef, Nov 12, 2020.

  1. DanWef

    DanWef

    Joined:
    Jun 4, 2020
    Posts:
    27
    Hi! I have 4 characters on screen. Each character has it's own animator. I wan't that all characters stop Ideling if one character starts it's talking animation. Is there a elegant way to realize this? Can I use paramtersfor multiple animators? Thx
     
  2. Kybernetik

    Kybernetik

    Joined:
    Jan 3, 2013
    Posts:
    2,486
    No, but if you just put them all in an array or list you could simply loop through it whenever you want to change one to apply the same to all of them.
     
  3. DanWef

    DanWef

    Joined:
    Jun 4, 2020
    Posts:
    27
    I gave all of them a parent object and access the animator over that ;) Thx