Search Unity

if (NetworkConnection.isReady)

Discussion in 'Multiplayer' started by eco_bach, Dec 14, 2017.

  1. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Why does the following conditional statement in a NetworkBehaviour class throw an error?

    Code (csharp):
    1.  
    2. if (NetworkConnection.isReady)
    3.  

    An object reference is required for the non-static field, method, or property 'NetworkConnection.isReady'