1
0
mirror of https://github.com/originalnicodr/CinematicUnityExplorer.git synced 2026-10-10 21:13:15 +08:00

Fixed the IL2CPP.CoreCLR build.

By actually reading the documentation.
This commit is contained in:
originalnicodr
2023-02-24 00:42:43 -03:00
parent 3b3598cf23
commit 522e5a0d7b
+2 -5
View File
@@ -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)