mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 01:48:07 +08:00
Fixed the IL2CPP.CoreCLR build.
By actually reading the documentation.
This commit is contained in:
1 parent
3b3598cf23
commit
522e5a0d7b
1 file changed
+2
-5
@@ -72,11 +72,8 @@ namespace UnityExplorer.UI.Panels
|
||||
private void ToggleGameLights(bool areLightsActive){
|
||||
//Update the list of game lights
|
||||
if (!areLightsActive){
|
||||
#if MONO
|
||||
var gameLights = GameObject.FindObjectsOfType<Light>();
|
||||
#else
|
||||
var gameLights = UnityEngine.Object.FindObjectsOfType(Il2CppType.Of<UnityEngine.Light>());
|
||||
#endif
|
||||
var gameLights = RuntimeHelper.FindObjectsOfTypeAll<UnityEngine.Light>();
|
||||
|
||||
//ExplorerCore.LogWarning($"Found ligths: {gameLights.Length}");
|
||||
|
||||
foreach(UnityEngine.Light light in gameLights)
|
||||
|
||||
Reference in new issue
Block a user