As my understanding, when you create networkbehaviour class with property without syncvar, class holds 2 different property on both client and server. If this assumption is true, why i can't see updated variable inside of ServerRpc function?
public class Test: NetworkBehaviour {
private List<int> list = new();
void Start()
{
list.Add(1);
}
[ServerRpc]
public void GetValue()
{
Debug.Log("list count: " + list.Count); // why it prints 0?
}
void Update()
{
if (!IsServerInitialized) return;
if (Input.Triggers) {
GetValue();
}
}
}