Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Help Wanted 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:
    4
    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:
    113
    Either custom coded nodes or a C# wrapper called via reflection. UVS by default can't do attributes directly.
     
    ericb_unity likes this.
unityunity