mirror of
https://github.com/xiaopeng12138/MaiDXR.git
synced 2025-02-17 11:18:37 +01:00
Change default config and let settings update when start
This commit is contained in:
parent
04c1eeb79f
commit
b740330f0b
@ -16,15 +16,15 @@ public class SettingsManager : MonoBehaviour
|
||||
{
|
||||
Settings Setting = new Settings()
|
||||
{
|
||||
HandSize = 8.5f,
|
||||
HandPositionX = 1f,
|
||||
HandSize = 8f,
|
||||
HandPositionX = 2f,
|
||||
HandPositionY = -2f,
|
||||
HandPositionZ = 6f,
|
||||
PlayerHigh = 170f,
|
||||
HandPositionZ = 7f,
|
||||
PlayerHigh = 180f,
|
||||
CaptureFrameRate = 90,
|
||||
TouchRefreshRate = 120,
|
||||
TouchRefreshRate = 90,
|
||||
CameraSmooth = 0.1f,
|
||||
HapticDuration = 0.1f,
|
||||
HapticDuration = 0.15f,
|
||||
HapticAmplitude = 1
|
||||
};
|
||||
JsonStr = JsonConvert.SerializeObject(Setting, Formatting.Indented);
|
||||
@ -36,6 +36,7 @@ public class SettingsManager : MonoBehaviour
|
||||
JsonStr = File.ReadAllText(JsonPath);
|
||||
Setting = JsonConvert.DeserializeObject<Settings>(JsonStr);
|
||||
}
|
||||
UpdateFromFile();
|
||||
}
|
||||
bool FocusChecked = true;
|
||||
void Update()
|
||||
|
@ -152,6 +152,8 @@ PlayerSettings:
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
metroInputSource: 0
|
||||
wsaTransparentSwapchain: 0
|
||||
m_HolographicPauseOnTrackingLoss: 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user