mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 01:48:07 +08:00
Fix get value from property with reflection.
This commit is contained in:
1 parent
3928cdc4fe
commit
b95178775c
1 file changed
+1
-1
@@ -123,7 +123,7 @@ namespace UnityExplorer.UI.Panels
|
||||
if (lodBias == null){
|
||||
Type qualitySettingsType = qualitySettings is Type type ? type : qualitySettings.GetActualType();
|
||||
lodBias = qualitySettingsType.GetProperty("lodBias");
|
||||
_defaultLodBias = (float)lodBias.GetValue(null);
|
||||
_defaultLodBias = (float)lodBias.GetValue(null, null);
|
||||
}
|
||||
lodBias.SetValue(null, areHighLodsOn ? 10000 : _defaultLodBias, null);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user