From e5ddb1fe6fe1b34ae3099fbbe14d1e9d141bf023 Mon Sep 17 00:00:00 2001 From: xpeng <1216772231@qq.com> Date: Sat, 20 Aug 2022 21:46:54 +0200 Subject: [PATCH] fix hand position saving issue --- Assets/Scripts/Configurations/PlayerSettingManager.cs | 6 +++--- ProjectSettings/ProjectSettings.asset | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/Configurations/PlayerSettingManager.cs b/Assets/Scripts/Configurations/PlayerSettingManager.cs index 028055c..7c0e611 100644 --- a/Assets/Scripts/Configurations/PlayerSettingManager.cs +++ b/Assets/Scripts/Configurations/PlayerSettingManager.cs @@ -49,19 +49,19 @@ public class PlayerSettingManager : MonoBehaviour } public void GetHandPositionX() { - if (JsonConfig.HasKey("HandPosition")) + if (JsonConfig.HasKey("HandPositionX")) Slider.value = (float)JsonConfig.GetDouble("HandPositionX"); SetHandPositionX(Slider.value); } public void GetHandPositionY() { - if (JsonConfig.HasKey("HandPosition")) + if (JsonConfig.HasKey("HandPositionY")) Slider.value = (float)JsonConfig.GetDouble("HandPositionY"); SetHandPositionY(Slider.value); } public void GetHandPositionZ() { - if (JsonConfig.HasKey("HandPosition")) + if (JsonConfig.HasKey("HandPositionZ")) Slider.value = (float)JsonConfig.GetDouble("HandPositionZ"); SetHandPositionZ(Slider.value); } diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index 9852f58..2633379 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -168,6 +168,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