Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions code/VR Art Gallery/Assets/Scenes/SampleScene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -64,7 +64,7 @@ private InputAction GetOrCreateDesktopAction()
return desktopSpawnButton.action;

if (m_RuntimeDesktopAction == null)
m_RuntimeDesktopAction = new InputAction("ToggleHUD_Desktop", InputActionType.Button, "<Keyboard>/h");
m_RuntimeDesktopAction = new InputAction("ToggleHUD_Desktop", InputActionType.Button, "<Keyboard>/slash");

return m_RuntimeDesktopAction;
}
Expand Down
Loading