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
{{ message }}
Repository navigation
Commit 4de1e34
Browse filesBrowse the repository at this point in the historyBrowse files
// Use the target assembly's defines: a Mono editor can build a CoreCLR player.
446
+
if(assemblyDefines.Contains("ENABLE_CORECLR"))
447
447
{
448
-
m_Diagnostics.AddError($"{type} cannot be used in a network variable - Cannot access the {hiddenType.Name} type to generate serialization as it is {(hiddenType.IsNestedPrivate?"private":"protected")}. To fix this, change the access modifier to internal or public.");
448
+
foreach(varhiddenTypeinhiddenTypes)
449
+
{
450
+
m_Diagnostics.AddError($"{type} cannot be used in a network variable - Cannot access the {hiddenType.Name} type to generate serialization as it is {(hiddenType.IsNestedPrivate?"private":"protected")}. To fix this, change the access modifier to internal or public.");
451
+
}
452
+
continue;
449
453
}
450
-
continue;
451
-
#else
454
+
452
455
// Log a warning in Mono so we can warn users who haven't yet switched their projects over.
453
456
foreach(varhiddenTypeinhiddenTypes)
454
457
{
455
458
m_Diagnostics.AddWarning($"NetworkVariable serialization for {type.Name} will fail in CoreCLR! With CoreCLR generated code cannot access the {hiddenType.Name} type to generate serialization as it is {(hiddenType.IsNestedPrivate?"private":"protected")}. To fix this, change the access modifier to internal or public.");
0 commit comments