Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Client-server communication.

Discussion in 'Multiplayer' started by Femidko, Sep 28, 2015.

  1. Femidko

    Femidko

    Joined:
    Aug 4, 2013
    Posts:
    55
    Good afternoon!
    In my project, for security purposes, the client and server are separated into different classes and namespaces. How to communicate (like [ClientRpc] and [Command]) between the client and the server, in this case?
     
  2. TehGM

    TehGM

    Joined:
    Nov 15, 2013
    Posts:
    89
    You can't. You can only use Network Messages in such case.
    And tbh I don't see how would that increase security. Better would be use just compiler directives.
     
  3. Femidko

    Femidko

    Joined:
    Aug 4, 2013
    Posts:
    55
    I understand that. But maybe is there another method?
    It only thing that stops me from using more uncomfortable unet (no user handovering between servers, no servers p2p, no easy RPC and serialization ) than uLink. Maybe wait a little longer? ))