Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

Animation Trigger not working but all others are.

$
0
0
Hi guys!

So this is probably an easy fix, and im just being numb... currently I've set up the most base framework for my game. Im new to networking with PUN and am enjoying it thus far!

My issue is this... I am using the Photon View in cahoots with Photon Animator View to sync Mechanim animation over network. I can get them all to work fine except for TRIGGERS. The base example im having is : Press LEFT MOUSE BUTTON to ATTACK. In my script I set the trigger and all is ok my end. Then when I link up another client the character doesn't carry out the attack animation on the other end.
I changed it to a BOOL to make sure the code was ok, and it works now at BOTH ends. So, I know I can workround this with bools etc but to put my mind to rest.... how the chuffnuts do I get the trigger animation to play over the network??

I have set the PHOTON ANIMATOR VIEW to continous on all parameters for testing, tried it on DISABLED, DISCRETE and CONTINOUS for the trigger, I even stripped the animation events off the timelines incase they were arsing it all up but nothing seems to fix it :'(

Thanks in advance!

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>