diff --git a/MLAPI/MonoBehaviours/Core/NetworkedBehaviour.cs b/MLAPI/MonoBehaviours/Core/NetworkedBehaviour.cs index 67ad27afca..33fc8d00d0 100644 --- a/MLAPI/MonoBehaviours/Core/NetworkedBehaviour.cs +++ b/MLAPI/MonoBehaviours/Core/NetworkedBehaviour.cs @@ -159,7 +159,7 @@ private void OnDestroy() private List syncedFieldValues = new List(); private List syncedVarHooks = new List(); //A dirty field is a field that's not synced. - public bool[] dirtyFields; + private bool[] dirtyFields; internal void SyncVarInit() { FieldInfo[] sortedFields = GetType().GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy | BindingFlags.Instance).OrderBy(x => x.Name).ToArray(); diff --git a/MLAPI/MonoBehaviours/Core/NetworkedObject.cs b/MLAPI/MonoBehaviours/Core/NetworkedObject.cs index 2e18ae7353..ab48ca2367 100644 --- a/MLAPI/MonoBehaviours/Core/NetworkedObject.cs +++ b/MLAPI/MonoBehaviours/Core/NetworkedObject.cs @@ -5,6 +5,7 @@ namespace MLAPI { + [AddComponentMenu("MLAPI/NetworkedObject", -99)] public class NetworkedObject : MonoBehaviour { [HideInInspector] diff --git a/MLAPI/MonoBehaviours/Core/NetworkingManager.cs b/MLAPI/MonoBehaviours/Core/NetworkingManager.cs index 7d6ff02ef7..bb8f334534 100644 --- a/MLAPI/MonoBehaviours/Core/NetworkingManager.cs +++ b/MLAPI/MonoBehaviours/Core/NetworkingManager.cs @@ -10,6 +10,7 @@ namespace MLAPI { + [AddComponentMenu("MLAPI/NetworkingManager", -100)] public class NetworkingManager : MonoBehaviour { public static float NetworkTime; @@ -19,6 +20,7 @@ public class NetworkingManager : MonoBehaviour public GameObject DefaultPlayerPrefab; public static NetworkingManager singleton; //Client only, what my connectionId is on the server + [HideInInspector] public int MyClientId; internal Dictionary connectedClients; public Dictionary ConnectedClients @@ -41,7 +43,7 @@ public bool isHost private bool isListening; private byte[] messageBuffer; internal int serverClientId; - + [HideInInspector] public bool IsClientConnected; public Action OnClientConnectedCallback = null; public Action OnClientDisconnectCallback = null; diff --git a/MLAPI/MonoBehaviours/Core/TrackedObject.cs b/MLAPI/MonoBehaviours/Core/TrackedObject.cs index adca7fd5e7..8d06eb761b 100644 --- a/MLAPI/MonoBehaviours/Core/TrackedObject.cs +++ b/MLAPI/MonoBehaviours/Core/TrackedObject.cs @@ -7,6 +7,7 @@ namespace MLAPI.MonoBehaviours.Core { //Based on: https://twotenpvp.github.io/lag-compensation-in-unity.html //Modified to be used with latency rather than fixed frames and subframes. Thus it will be less accrurate but more modular. + [AddComponentMenu("MLAPI/TrackedObject", -98)] public class TrackedObject : MonoBehaviour { internal Dictionary FrameData = new Dictionary(); diff --git a/MLAPI/MonoBehaviours/Prototyping/NetworkedAnimator.cs b/MLAPI/MonoBehaviours/Prototyping/NetworkedAnimator.cs index 150b8b1db1..11713350de 100644 --- a/MLAPI/MonoBehaviours/Prototyping/NetworkedAnimator.cs +++ b/MLAPI/MonoBehaviours/Prototyping/NetworkedAnimator.cs @@ -4,6 +4,7 @@ namespace MLAPI.MonoBehaviours.Prototyping { + [AddComponentMenu("MLAPI/NetworkedAnimator")] public class NetworkedAnimator : NetworkedBehaviour { public bool EnableProximity = false; diff --git a/MLAPI/MonoBehaviours/Prototyping/NetworkedNavMeshAgent.cs b/MLAPI/MonoBehaviours/Prototyping/NetworkedNavMeshAgent.cs index d4fdaca095..0a22644178 100644 --- a/MLAPI/MonoBehaviours/Prototyping/NetworkedNavMeshAgent.cs +++ b/MLAPI/MonoBehaviours/Prototyping/NetworkedNavMeshAgent.cs @@ -5,6 +5,7 @@ namespace MLAPI.MonoBehaviours.Prototyping { + [AddComponentMenu("MLAPI/NetworkedNavMeshAgent")] public class NetworkedNavMeshAgent : NetworkedBehaviour { private NavMeshAgent agent; diff --git a/MLAPI/MonoBehaviours/Prototyping/NetworkedTransform.cs b/MLAPI/MonoBehaviours/Prototyping/NetworkedTransform.cs index 2cedd3866e..c3d29ccc85 100644 --- a/MLAPI/MonoBehaviours/Prototyping/NetworkedTransform.cs +++ b/MLAPI/MonoBehaviours/Prototyping/NetworkedTransform.cs @@ -3,6 +3,7 @@ namespace MLAPI.MonoBehaviours.Prototyping { + [AddComponentMenu("MLAPI/NetworkedTransform")] public class NetworkedTransform : NetworkedBehaviour { [Range(0f, 120f)]