playMaker

Author Topic: Need some help with setting up mecanim to sync over photon[solved]  (Read 2722 times)

invayne

  • Full Member
  • ***
  • Posts: 105
so to start off im kinda lost ie spent the past few days trying to figure this out and am now having to ask for help, since there no demo on how to do this. i cant deem to figure out how to sync mecanim over photon. so far all ive been able to do is get position and rotation working so i have a body floating around the scene with no animations. ive tried setting up  a   fsm where the start state uses a photon view is mine action  and on the is mine  i get the mecaim parameters and store them then on the is not mine i set them to the var repository. but this does nothing. ive also set up a animator synch in the var  repository since its  being watched by the photon view. im pretty much out of ideas and was hopping someone could send me int he right direction.

thanks 
« Last Edit: February 21, 2015, 01:16:55 PM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: need some help with setting up mecanim to sync over photon
« Reply #1 on: February 21, 2015, 08:53:17 AM »
Hi,

 I think that the latest version of PUN is now offering a built in system for synchronizing Mecanim, so you should use this instead of trying to do it yourself.

 If however you want to do it yourself, basically, you don't synch Mecanim, you synch only the exposed values you use in PlayMaker to control Mecanim, so if you have a float that controls Mecanim, this float is what you need to synch, just like in the demo, the animation state is synched using an int, you can use the same technic for Mecanim.

 Bye,

 Jean

invayne

  • Full Member
  • ***
  • Posts: 105
Re: need some help with setting up mecanim to sync over photon
« Reply #2 on: February 21, 2015, 08:58:36 AM »
ahh ok so ill have to download the newest version then thanx

invayne

  • Full Member
  • ***
  • Posts: 105
Re: need some help with setting up mecanim to sync over photon
« Reply #3 on: February 21, 2015, 09:35:06 AM »
unfortunately it doesn't have a built in system. just looked at it. thing is im not using  playmaker to control the character im using a ufps controller that uses the mecanim on the 3rd person body. so im lost on how to synch the animations since im not doing the animation through playmaker.

invayne

  • Full Member
  • ***
  • Posts: 105
Re: need some help with setting up mecanim to sync over photon
« Reply #4 on: February 21, 2015, 10:14:16 AM »
going to try to integrate the control setup to playmaker to see if i can get it to work that way  ;D

invayne

  • Full Member
  • ***
  • Posts: 105
Re: need some help with setting up mecanim to sync over photon
« Reply #5 on: February 21, 2015, 01:13:28 PM »
ok so i lied ther is one it was a script that was hidden :) thanks jean