Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question How do i make a child object follow animation?

Discussion in 'Editor & General Support' started by campbellndowns, Aug 25, 2020.

  1. campbellndowns

    campbellndowns

    Joined:
    May 29, 2020
    Posts:
    4
    I'm a beginner so I apologize in advance for anything that is hard to understand. I am trying to get a child object (the character's arm) to follow the animation of the character. My problem is that the idle animation moves up and down but the arm does not move at all. I have a video linked below to show the problem.
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,944
    How is your character set up, hierarchy-wise?
     
  3. campbellndowns

    campbellndowns

    Joined:
    May 29, 2020
    Posts:
    4
    This is my player
     
  4. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,944
    Can you share a higher resolution screenshot? I can't read that, sorry!~
     
  5. campbellndowns

    campbellndowns

    Joined:
    May 29, 2020
    Posts:
    4
    Is this any better?
    Screen Shot 2020-08-26 at 1.38.15 PM.png
     
  6. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,944
    Ah ok, so your player's animation is driven by a spritesheet, not actual Transform animation. That means there's not actually any transform positions changing in your animation, so there's nothing for the arm to "follow". I'm not sure what the best technique is here. The arm/gun might need to have their own animations which match the player's animation?
     
  7. campbellndowns

    campbellndowns

    Joined:
    May 29, 2020
    Posts:
    4
    Awesome Thanks!