Consider two animations: Idle and Run
I switch to Run/Idle via triggers from code, on OwnerNetworkAnimator (client-side authority)
I set triggers like this:
ownerNetworkAnimator.SetTrigger("Idle");
and it seems to work, but sometimes, due to (probably) lag, the trigger for Idle stays “on” even while in Idle.
In a normal game, this issue can be solved by Resetting trigger, so that’s what I did here.
The problem is, it doesn’t seem to work at all like intended. Instead of setting the trigger to false, it seems trigger it on and off, or just on. Moreover, the animation seems to work fine on the server, but on client, it glitches out.
My current workaround is so to first call all those on OwnerNetworkAnimator, and then on animator directly locally, but hey, why is it needed in the first place?