diff --git a/src/ExplorerCore.cs b/src/ExplorerCore.cs index 7577fa7..05a802a 100644 --- a/src/ExplorerCore.cs +++ b/src/ExplorerCore.cs @@ -14,7 +14,7 @@ namespace UnityExplorer public static class ExplorerCore { public const string NAME = "UnityExplorer"; - public const string VERSION = "4.8.1"; + public const string VERSION = "4.8.2"; public const string AUTHOR = "Sinai"; public const string GUID = "com.sinai.unityexplorer"; diff --git a/src/UI/Widgets/TimeScaleWidget.cs b/src/UI/Widgets/TimeScaleWidget.cs index 1bd2808..1ed8d4e 100644 --- a/src/UI/Widgets/TimeScaleWidget.cs +++ b/src/UI/Widgets/TimeScaleWidget.cs @@ -97,7 +97,7 @@ namespace UnityExplorer.UI.Widgets try { - MethodInfo target = AccessTools.Method(typeof(Time), nameof(Time.timeScale)); + MethodInfo target = typeof(Time).GetProperty("timeScale").GetSetMethod(); #if CPP if (UnhollowerBaseLib.UnhollowerUtils.GetIl2CppMethodInfoPointerFieldForGeneratedMethod(target) == null) return;