diff --git a/code/VR Art Gallery/Assets/Scenes/SampleScene.unity b/code/VR Art Gallery/Assets/Scenes/SampleScene.unity index d5746e2..a8816fe 100644 --- a/code/VR Art Gallery/Assets/Scenes/SampleScene.unity +++ b/code/VR Art Gallery/Assets/Scenes/SampleScene.unity @@ -6975,6 +6975,10 @@ MonoBehaviour: serializedVersion: 2 m_Bits: 4294967295 testTexture: {fileID: 0} + hudPanelName: Gallery Selection UI + hudFallbackName: World Space Canvas + workspaceBehindHudDistance: 0.35 + workspaceBehindHudHeightOffset: -1.1 --- !u!4 &1212051091 Transform: m_ObjectHideFlags: 0 @@ -8515,8 +8519,14 @@ MonoBehaviour: hudObject: {fileID: 525470198} hudPanelName: Gallery Selection UI headCamera: {fileID: 4607428429233221385} - spawnDistance: 1.5 - spawnHeightOffset: 0.5 + spawnDistance: 1 + spawnHeightOffset: 1 + minVisibleDistance: 1 + maxVisibleDistance: 1.5 + minVisibleHeightOffset: 1 + maxVisibleHeightOffset: 1.5 + keepPanelLevel: 0 + panelRotationOffsetEuler: {x: 0, y: 180, z: 0} --- !u!4 &1864569578 Transform: m_ObjectHideFlags: 0 diff --git a/code/VR Art Gallery/Assets/VRMPAssets/Scripts/UI/LobbyList/HUDSpawnerScript.cs b/code/VR Art Gallery/Assets/VRMPAssets/Scripts/UI/LobbyList/HUDSpawnerScript.cs index 58b9a93..a49dee1 100644 --- a/code/VR Art Gallery/Assets/VRMPAssets/Scripts/UI/LobbyList/HUDSpawnerScript.cs +++ b/code/VR Art Gallery/Assets/VRMPAssets/Scripts/UI/LobbyList/HUDSpawnerScript.cs @@ -12,14 +12,14 @@ public class HUDSpawner : MonoBehaviour public GameObject hudObject; public string hudPanelName = "Gallery Selection UI"; public Transform headCamera; - public float spawnDistance = 1.5f; - public float spawnHeightOffset = 0.5f; + public float spawnDistance = 1.0f; + public float spawnHeightOffset = 1.0f; [Header("Spawn Comfort")] - public float minVisibleDistance = 0.45f; - public float maxVisibleDistance = 0.75f; - public float minVisibleHeightOffset = -0.15f; - public float maxVisibleHeightOffset = 0.07f; + public float minVisibleDistance = 1.0f; + public float maxVisibleDistance = 1.5f; + public float minVisibleHeightOffset = 1f; + public float maxVisibleHeightOffset = 1.5f; public bool keepPanelLevel = false; public Vector3 panelRotationOffsetEuler = new Vector3(0f, 180f, 0f); @@ -64,7 +64,7 @@ private InputAction GetOrCreateDesktopAction() return desktopSpawnButton.action; if (m_RuntimeDesktopAction == null) - m_RuntimeDesktopAction = new InputAction("ToggleHUD_Desktop", InputActionType.Button, "/h"); + m_RuntimeDesktopAction = new InputAction("ToggleHUD_Desktop", InputActionType.Button, "/slash"); return m_RuntimeDesktopAction; }