Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. 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

Unity Multiplayer uNet Making a chat

Discussion in 'Connected Games' started by UnityUser9860, Dec 27, 2017.

  1. UnityUser9860

    UnityUser9860

    Joined:
    Dec 8, 2015
    Posts:
    179
    Im trying to add chat to my multiplayer game in uNet this is my code Howether only clients can send messages, when the server tries it does nothing but the debug line in the command fucntion says it was called?

    Could someone please help, thank you!
     
  2. UnityUser9860

    UnityUser9860

    Joined:
    Dec 8, 2015
    Posts:
    179
  3. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    8,748
    You should post your code in the forum using CODE tags. No one is going to want to download your code to their computer from your link.
     
  4. UnityUser9860

    UnityUser9860

    Joined:
    Dec 8, 2015
    Posts:
    179
    Its paste bin xD its in the browser
     
  5. UnityUser9860

    UnityUser9860

    Joined:
    Dec 8, 2015
    Posts:
    179
  6. Zante

    Zante

    Joined:
    Mar 29, 2008
    Posts:
    385
    That doesn't look like it's being properly validated though. In your example, a hacker could obtain complete control over the chat log.

    It's better to send an incremental message by itself rather than a modified full history.
     
unityunity