We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 553edc4 commit f4e8b0dCopy full SHA for f4e8b0d
MLAPI/Serialization/BitWriter.cs
@@ -47,6 +47,7 @@ public void SetStream(Stream stream)
47
/// <param name="value">The object to write</param>
48
public void WriteObjectPacked(object value)
49
{
50
+ // Check unitys custom null checks
51
bool isNull = value == null || (value is UnityEngine.Object && ((UnityEngine.Object)value) == null);
52
53
if (isNull || value.GetType().IsNullable())
0 commit comments