From dc8c5b22b1884fa411518563f7e1ba82c7da7d7c Mon Sep 17 00:00:00 2001 From: xpeng <1216772231@qq.com> Date: Sat, 27 Aug 2022 00:21:23 +0200 Subject: [PATCH] fix camera smooth config issue --- Assets/Scripts/Configs/NoneVRSettingManager.cs | 4 ++-- ProjectSettings/ProjectSettings.asset | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Configs/NoneVRSettingManager.cs b/Assets/Scripts/Configs/NoneVRSettingManager.cs index d887c99..4362812 100644 --- a/Assets/Scripts/Configs/NoneVRSettingManager.cs +++ b/Assets/Scripts/Configs/NoneVRSettingManager.cs @@ -38,7 +38,7 @@ public class NoneVRSettingManager : MonoBehaviour if (JsonConfig.HasKey("NVRMode")) Dropdown.value = JsonConfig.GetInt("NVRMode"); if (JsonConfig.HasKey("NVRCameraSmooth")) - CameraSmooth.smoothSpeed = JsonConfig.GetInt("NVRCameraSmooth"); + CameraSmooth.smoothSpeed = (float)JsonConfig.GetDouble("NVRCameraSmooth"); SetNVRMode(); } public void GetNVRFOV() @@ -88,7 +88,7 @@ public class NoneVRSettingManager : MonoBehaviour break; } JsonConfig.SetInt("NVRMode", Dropdown.value); - JsonConfig.SetInt("NVRCameraSmooth", Dropdown.value); + JsonConfig.SetDouble("NVRCameraSmooth", Dropdown.value); } public void SetNVRFOV(float fov) { diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index 12a799a..434fa22 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -194,6 +194,9 @@ PlayerSettings: - {fileID: 0} - {fileID: 0} - {fileID: 0} + - {fileID: 0} + - {fileID: -6018045015233401694, guid: 3999ab811e936714280a476b3a032d86, type: 2} + - {fileID: 6536100391545742739, guid: 55d1ec7a4296de343b6d3bb6f9a19731, type: 2} metroInputSource: 0 wsaTransparentSwapchain: 0 m_HolographicPauseOnTrackingLoss: 1