mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 01:48:07 +08:00
Improved compatibility for IL2CPP games for disabling cinemachine, finding postprocessing objects, and more.
This commit is contained in:
1 parent
bfdeaacf33
commit
47e6e3cda8
5 files changed
+24
-7
No files matched your search
@@ -200,7 +200,7 @@ namespace UnityExplorer.UI.Panels
|
||||
IEnumerable<Behaviour> comps = ourCamera.GetComponentsInChildren<Behaviour>();
|
||||
foreach (Behaviour comp in comps)
|
||||
{
|
||||
if (comp.GetType().ToString() == "Cinemachine.CinemachineBrain"){
|
||||
if (comp.GetActualType().ToString() == "Cinemachine.CinemachineBrain"){
|
||||
comp.enabled = enable;
|
||||
disabledCinemachine = !enable;
|
||||
break;
|
||||
|
||||
@@ -157,6 +157,7 @@ namespace UnityExplorer.UI.Panels
|
||||
|
||||
List<Renderer> renderers = RuntimeHelper.FindObjectsOfTypeAll(typeof(Renderer))
|
||||
.Select(obj => obj.TryCast<Renderer>())
|
||||
.Where(r => r.isVisible && r.enabled)
|
||||
.ToList();
|
||||
|
||||
foreach (Renderer renderer in renderers){
|
||||
|
||||
@@ -94,7 +94,11 @@ namespace UnityExplorer.UI.Panels
|
||||
};
|
||||
|
||||
foreach (string effect in universalClassEffects){
|
||||
AddEffect("UnityEngine.Rendering.Universal", effect);
|
||||
try {
|
||||
AddEffect("UnityEngine.Rendering.Universal", effect);
|
||||
}
|
||||
catch {}
|
||||
|
||||
}
|
||||
|
||||
string[] postProcessingClassEffects = {
|
||||
@@ -112,7 +116,10 @@ namespace UnityExplorer.UI.Panels
|
||||
};
|
||||
|
||||
foreach (string effect in postProcessingClassEffects){
|
||||
AddEffect("UnityEngine.Rendering.PostProcessing", effect);
|
||||
try {
|
||||
AddEffect("UnityEngine.Rendering.PostProcessing", effect);
|
||||
}
|
||||
catch {}
|
||||
}
|
||||
|
||||
BuildEffectTogglers();
|
||||
|
||||
Reference in new issue
Block a user