You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MLAPI/MonoBehaviours/Core/NetworkedObject.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ private void OnValidate()
17
17
{
18
18
if(string.IsNullOrEmpty(NetworkedPrefabName))
19
19
{
20
-
LogHelper.LogWarning("MLAPI: The NetworkedObject "+gameObject.name+" does not have a NetworkedPrefabName. It has been set to the gameObject name",LogLevel.Normal);
20
+
if(LogHelper.CurrentLogLevel<=LogLevel.Normal)LogHelper.LogWarning("The NetworkedObject "+gameObject.name+" does not have a NetworkedPrefabName. It has been set to the gameObject name");
LogHelper.LogWarning("MLAPI: Please be aware that Scene objects are NOT supported if SceneManagement is turned on, even if HandleObjectSpawning is turned on",LogLevel.Normal);
174
+
if(LogHelper.CurrentLogLevel<=LogLevel.Normal)LogHelper.LogWarning("Please be aware that Scene objects are NOT supported if SceneManagement is turned on, even if HandleObjectSpawning is turned on");
LogHelper.LogWarning("MLAPI: The NetworkedPrefab "+NetworkConfig.NetworkedPrefabs[i].prefab.name+" does not have a NetworkedPrefabName.",LogLevel.Normal);
183
+
if(LogHelper.CurrentLogLevel<=LogLevel.Normal)LogHelper.LogWarning("The NetworkedPrefab "+NetworkConfig.NetworkedPrefabs[i].prefab.name+" does not have a NetworkedPrefabName.");
LogHelper.LogWarning("MLAPI: Client "+clientId+" tried to send a passthrough message for a messageType not registered as passthrough",LogLevel.Normal);
814
+
if(LogHelper.CurrentLogLevel<=LogLevel.Normal)LogHelper.LogWarning("Client "+clientId+" tried to send a passthrough message for a messageType not registered as passthrough");
LogHelper.LogWarning("MLAPI: Server tried to send a passthrough message for a messageType not registered as passthrough",LogLevel.Normal);
820
+
if(LogHelper.CurrentLogLevel<=LogLevel.Normal)LogHelper.LogWarning("Server tried to send a passthrough message for a messageType not registered as passthrough");
LogHelper.LogWarning("MLAPI: Passthrough message was sent with invalid target: "+passthroughTarget+" from client "+clientId,LogLevel.Normal);
828
+
if(LogHelper.CurrentLogLevel<=LogLevel.Normal)LogHelper.LogWarning("Passthrough message was sent with invalid target: "+passthroughTarget+" from client "+clientId);
LogHelper.LogWarning("MLAPI: The field "+sortedFields[i].Name+" will not be serialized as it's not of a supported type. Add the BinaryIgnore attribute to prevent this message from shwoing up.",LogLevel.Normal);
50
+
if(LogHelper.CurrentLogLevel<=LogLevel.Normal)LogHelper.LogWarning("The field "+sortedFields[i].Name+" will not be serialized as it's not of a supported type. Add the BinaryIgnore attribute to prevent this message from shwoing up.");
LogHelper.LogWarning("MLAPI: The field "+sortedFields[i].Name+" will not be deserialized as it's not of a supported type. Add the BinaryIgnore attribute to prevent this message from shwoing up.",LogLevel.Normal);
86
+
if(LogHelper.CurrentLogLevel<=LogLevel.Normal)LogHelper.LogWarning("The field "+sortedFields[i].Name+" will not be deserialized as it's not of a supported type. Add the BinaryIgnore attribute to prevent this message from shwoing up.");
LogHelper.LogWarning("MLAPI: The field "+sortedFields[i].Name+" will not be deserialized as it's not of a supported type. Add the BinaryIgnore attribute to prevent this message from shwoing up.",LogLevel.Normal);
120
+
if(LogHelper.CurrentLogLevel<=LogLevel.Normal)LogHelper.LogWarning("The field "+sortedFields[i].Name+" will not be deserialized as it's not of a supported type. Add the BinaryIgnore attribute to prevent this message from shwoing up.");
Copy file name to clipboardExpand all lines: MLAPI/NetworkingManagerComponents/Binary/BitReader.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ public static BitReader Get(byte[] readFrom)
31
31
if(readerPool.Count==0)
32
32
{
33
33
if(pools>10)
34
-
LogHelper.LogWarning("MLAPI: There are more than 10 BitReaders. Have you forgotten do dispose? (More readers hurt performance)",LogLevel.Normal);
34
+
if(LogHelper.CurrentLogLevel<=LogLevel.Normal)LogHelper.LogWarning("There are more than 10 BitReaders. Have you forgotten do dispose? (More readers hurt performance)");
Copy file name to clipboardExpand all lines: MLAPI/NetworkingManagerComponents/Binary/BitWriter.cs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ public static BitWriter Get()
86
86
{
87
87
if(writerPool.Count==0)
88
88
{
89
-
LogHelper.LogWarning("MLAPI: There are more than 10 BitWriters. Have you forgotten do dispose? (It will still work with worse performance)",LogLevel.Normal);
89
+
if(LogHelper.CurrentLogLevel<=LogLevel.Normal)LogHelper.LogWarning("There are more than 10 BitWriters. Have you forgotten do dispose? (It will still work with worse performance)");
LogHelper.LogWarning("MLAPI: The type \""+b.GetType()+"\" is not supported by the Binary Serializer. It will be ignored",LogLevel.Normal);
102
+
if(LogHelper.CurrentLogLevel<=LogLevel.Normal)LogHelper.LogWarning("The type \""+b.GetType()+"\" is not supported by the Binary Serializer. It will be ignored");
103
103
}
104
104
105
105
@@ -194,15 +194,15 @@ public long Finalize(ref byte[] buffer)
194
194
{
195
195
if(buffer==null)
196
196
{
197
-
LogHelper.LogWarning("MLAPI: no buffer provided",LogLevel.Normal);
0 commit comments