Search Unity

Question Method with Attribute like [ClientRpc] [Server] in visual scripting?

Discussion in 'Visual Scripting' started by AvoCavo, Apr 3, 2021.

  1. AvoCavo

    AvoCavo

    Joined:
    May 5, 2017
    Posts:
    5
    How do I implement method with attributes such as [ClientRpc] [Server] method?

    for example :


    [ClientRpc]
    public void RpcDamage(int amount)
    {
    Debug.Log("Took damage:" + amount);
    }

    We are using visual scripting tool for network solution mlapi / Mirror.
     
  2. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    2,079
    Either custom coded nodes or a C# wrapper called via reflection. UVS by default can't do attributes directly.
     
    ericb_unity likes this.