using Unity.Netcode; using UnityEngine; namespace Unity.Multiplayer.Samples.Utilities { /// /// Simple object that keeps track of the scene loading progress of a specific instance. /// public class NetworkedLoadingProgressTracker : NetworkBehaviour { /// /// The current loading progress associated with the owner of this NetworkBehavior /// public NetworkVariable Progress { get; } = new NetworkVariable(0, NetworkVariableReadPermission.Everyone, NetworkVariableWritePermission.Owner); void Awake() { DontDestroyOnLoad(this); } } }