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
Assert.IsNotNull(s_Instance,"Instance must be initialized from CPP before IntializeOnLoad");
25
+
if(s_Instance==null)
26
+
{
27
+
Console.WriteLine("[WARNING] ScriptableBakedReflectionSystemWrapper instance must be initialized from CPP before InitializeOnLoad");
28
+
return;
29
+
}
28
30
29
31
if(value==null||value.Equals(null))
30
32
{
31
33
Debug.LogError("'null' cannot be assigned to ScriptableBakedReflectionSystemSettings.system");
32
34
return;
33
35
}
36
+
34
37
// We always allow the BuiltinBakedReflectionSystem, it is set by Unity on domain reload
35
38
// However, we issue a warning when multiple different IScriptableBakedReflectionSystem have been assigned.
36
-
elseif(!(systemisBuiltinBakedReflectionSystem)
37
-
&&!(valueisBuiltinBakedReflectionSystem)
38
-
&&system!=value)
39
+
if(!(systemisBuiltinBakedReflectionSystem)
40
+
&&!(valueisBuiltinBakedReflectionSystem)
41
+
&&system!=value)
39
42
Debug.LogWarningFormat("ScriptableBakedReflectionSystemSettings.system is assigned more than once. Only a the last instance will be used. (Last instance {0}, New instance {1})",system,value);
0 commit comments