This version of Unity is unsupported.
Method group is Obsolete

NetworkAnimator.SetTrigger

Obsolete The high level API classes are deprecated and will be removed in the future.

Declaration

public void SetTrigger(string triggerName);
Obsolete The high level API classes are deprecated and will be removed in the future.

Declaration

public void SetTrigger(int hash);

Parameters

name Name of trigger.
hash Hash id of trigger (from the Animator).

Description

Causes an animation trigger to be invoked for a networked object.

If local authority is set, and this is called from the client, then the trigger will be invoked on the server and all clients. If not, then this is called on the server, and the trigger will be called on all clients.