mirror of
https://github.com/xiaopeng12138/MaiDXR.git
synced 2024-11-27 20:40:48 +01:00
add camera smooth config
This commit is contained in:
parent
9c96af0659
commit
2d679be382
@ -3377,7 +3377,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
target: {fileID: 0}
|
target: {fileID: 0}
|
||||||
smoothSpeed: 0.1
|
smoothSpeed: 0.0125
|
||||||
PositionOffset: {x: 0, y: 0, z: 0}
|
PositionOffset: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1 &358458036
|
--- !u!1 &358458036
|
||||||
GameObject:
|
GameObject:
|
||||||
|
@ -37,6 +37,8 @@ public class NoneVRSettingManager : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if (JsonConfig.HasKey("NVRMode"))
|
if (JsonConfig.HasKey("NVRMode"))
|
||||||
Dropdown.value = JsonConfig.GetInt("NVRMode");
|
Dropdown.value = JsonConfig.GetInt("NVRMode");
|
||||||
|
if (JsonConfig.HasKey("NVRCameraSmooth"))
|
||||||
|
CameraSmooth.smoothSpeed = JsonConfig.GetInt("NVRCameraSmooth");
|
||||||
SetNVRMode();
|
SetNVRMode();
|
||||||
}
|
}
|
||||||
public void GetNVRFOV()
|
public void GetNVRFOV()
|
||||||
@ -86,6 +88,7 @@ public class NoneVRSettingManager : MonoBehaviour
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
JsonConfig.SetInt("NVRMode", Dropdown.value);
|
JsonConfig.SetInt("NVRMode", Dropdown.value);
|
||||||
|
JsonConfig.SetInt("NVRCameraSmooth", Dropdown.value);
|
||||||
}
|
}
|
||||||
public void SetNVRFOV(float fov)
|
public void SetNVRFOV(float fov)
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,7 @@ using UnityEngine;
|
|||||||
public class CameraSmooth : MonoBehaviour {
|
public class CameraSmooth : MonoBehaviour {
|
||||||
|
|
||||||
public Transform target;
|
public Transform target;
|
||||||
public float smoothSpeed = 0.1f;
|
public float smoothSpeed = 0.0125f;
|
||||||
public Vector3 PositionOffset;
|
public Vector3 PositionOffset;
|
||||||
Camera cam;
|
Camera cam;
|
||||||
void Update ()
|
void Update ()
|
||||||
|
@ -194,8 +194,6 @@ PlayerSettings:
|
|||||||
- {fileID: 0}
|
- {fileID: 0}
|
||||||
- {fileID: 0}
|
- {fileID: 0}
|
||||||
- {fileID: 0}
|
- {fileID: 0}
|
||||||
- {fileID: -6018045015233401694, guid: 3999ab811e936714280a476b3a032d86, type: 2}
|
|
||||||
- {fileID: 6536100391545742739, guid: 55d1ec7a4296de343b6d3bb6f9a19731, type: 2}
|
|
||||||
metroInputSource: 0
|
metroInputSource: 0
|
||||||
wsaTransparentSwapchain: 0
|
wsaTransparentSwapchain: 0
|
||||||
m_HolographicPauseOnTrackingLoss: 1
|
m_HolographicPauseOnTrackingLoss: 1
|
||||||
|
Loading…
Reference in New Issue
Block a user