Search Unity

Network Variable declaration

Discussion in 'Netcode for GameObjects' started by CosmicStud, Jan 27, 2022.

  1. CosmicStud

    CosmicStud

    Joined:
    Jun 13, 2017
    Posts:
    55
    A class with a network variable that is not declared fully outputs errors,

    Code (CSharp):
    1. public NetworkVariable<ulong> assignedPlayerNetID;
    2.  
     
    Last edited: Jan 27, 2022
  2. hoesterey

    hoesterey

    Joined:
    Mar 19, 2010
    Posts:
    659
    What's the problem? It's warning you you didn't declare the NetworkVariable.