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:
@@ -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