Tasharen Entertainment Forum

Support => TNet 3 Support => Topic started by: Wonse on August 11, 2013, 01:17:02 PM

Title: how to sync a player animation with unity 4 animator ?
Post by: Wonse 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..)

(http://i.imgur.com/gHqZWBw.png)

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 ?
Title: Re: how to sync a player animation with unity 4 animator ?
Post by: ArenMook 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.
Title: Re: how to sync a player animation with unity 4 animator ?
Post by: Wonse on August 14, 2013, 04:59:42 AM
Tank you. i'll try this