Author Topic: how to sync a player animation with unity 4 animator ?  (Read 4344 times)

Wonse

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
how to sync a player animation with unity 4 animator ?
« on: August 11, 2013, 01:17:02 PM »
Hello, i'm new with Tnet.

I'm working on  a social 3D game. i want to sync my player animation, played with the unity 4 animator.
Is there a easy way to sync the animator parameters ? i saw the "Unity.animator" on the "TautoSync" dropDown menu,  but it dont have my custom animator's prarameters  (Speed, hit, pull..)



So, is there a built-in way to "sync" my animators ? or i have to add a script who drive it, and then, add it on my character ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: how to sync a player animation with unity 4 animator ?
« Reply #1 on: August 11, 2013, 02:33:59 PM »
There is no built-in script to sync the animators. I suggest synchronizing whatever causes the animations to be played instead. For example, if pressing forward makes you walk forward, sync that state. What I generally do is have a Vector2 for that -- acceleration and turning for example -- which actually often matches Unity's input axes (vertical and horizontal). That's what gets synchronized. So all the animations play automatically based on those synchronized values.

Wonse

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Re: how to sync a player animation with unity 4 animator ?
« Reply #2 on: August 14, 2013, 04:59:42 AM »
Tank you. i'll try this