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. Dismiss Notice

OnClientError passes an int

Discussion in 'Multiplayer' started by cephalo2, Feb 21, 2018.

  1. cephalo2

    cephalo2

    Joined:
    Feb 25, 2016
    Posts:
    257
    So the error code for OnClientError is passed as an int. Are this codes the same as the enumeration NetworkError? Imagine assuming that and being wrong. That would be an all day wild goose chase, except you would be chasing a fictional goose.
     
    Last edited: Feb 21, 2018
  2. Codinablack

    Codinablack

    Joined:
    May 8, 2016
    Posts:
    12
    Yes. The documentation isn't the greatest but it does tell you the int is indeed a NetworkError type
     
    cephalo2 likes this.