Client emote is not visible to others

Options
RDS
RDS
edited December 2022 in Fusion

Hi I have implemented a fusion code to enable an emote for the players in the game. At first, I did it with NetweorkMecanimAnimator as follows.

networkMecanimAnimator.Animator.SetTrigger("Emote");

However it didn't work as only the emote was visible to the player who enabled it. Then I used Rpc call to do the same operation in there the emotes were visible to only host (Other players couldn't see the emotes including their ones).

[Networked(OnChanged = nameof(OnEmoteEnabled))]

public NetworkBool isPressed { get; set; }

[Rpc(RpcSources.InputAuthority, RpcTargets.StateAuthority)]

    public void RPC_EnableEmote(bool isPressed, RpcInfo info = default)

    {

        Debug.Log($"Called by {Object.Id}");

        this.isPressed = isPressed;

    }

Glad if anyone can help me with this.