Relative Content

Tag Archive for unity-game-enginemultiplayernetcode

NetworkVariableBase.MarkNetworkBehaviourDirty Error in Unity

public class Generate : NetworkBehaviour { private NetworkVariable<float> decreament = new NetworkVariable<float>(10); void Update() { decreament.Value -= Time.deltaTime; } } This code gives me an error when I run this code in Unity and start the host and If I directly close the game from the unity editor then this code gives me NullReferenceException: Object […]

I can’t get players to move items

Moving items by the player does not work and produces the error.
Perhaps this is some kind of bug; my other projects had the same error. Hope someone can help me.
I use unity netcode for gameobjects.