From 53713995bc7af65371013c1cff8232272ccec77a Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sun, 27 Oct 2024 17:11:49 +0100 Subject: [PATCH] Disable eye gaze (and use invisible cursor) --- .../MixedRealityInputSystemProfile.asset | 2 +- .../MixedRealityPointerProfile.asset | 6 +-- .../MixedRealityPointerProfile.asset.meta | 2 +- Assets/Scenes/WebView.unity | 40 +++++++++---------- 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/Assets/MixedRealityToolkit.Generated/CustomProfiles/MixedRealityInputSystemProfile.asset b/Assets/MixedRealityToolkit.Generated/CustomProfiles/MixedRealityInputSystemProfile.asset index d408e7b..b464469 100644 --- a/Assets/MixedRealityToolkit.Generated/CustomProfiles/MixedRealityInputSystemProfile.asset +++ b/Assets/MixedRealityToolkit.Generated/CustomProfiles/MixedRealityInputSystemProfile.asset @@ -110,7 +110,7 @@ MonoBehaviour: focusIndividualCompoundCollider: 0 inputActionsProfile: {fileID: 11400000, guid: 723eb97b02944311b92861f473eee53e, type: 2} inputActionRulesProfile: {fileID: 11400000, guid: 03945385d89102f41855bc8f5116b199, type: 2} - pointerProfile: {fileID: 11400000, guid: 48aa63a9725047b28d4137fd0834bc31, type: 2} + pointerProfile: {fileID: 11400000, guid: 105274074c153e04896aa625cb5d6ae5, type: 2} gesturesProfile: {fileID: 11400000, guid: bd7829a9b29409045a745b5a18299291, type: 2} speechCommandsProfile: {fileID: 11400000, guid: 252528ae2d3a4fc4eba4752b90de5e7d, type: 2} enableControllerMapping: 1 diff --git a/Assets/MixedRealityToolkit.Generated/CustomProfiles/MixedRealityPointerProfile.asset b/Assets/MixedRealityToolkit.Generated/CustomProfiles/MixedRealityPointerProfile.asset index 9cee368..00d066d 100644 --- a/Assets/MixedRealityToolkit.Generated/CustomProfiles/MixedRealityPointerProfile.asset +++ b/Assets/MixedRealityToolkit.Generated/CustomProfiles/MixedRealityPointerProfile.asset @@ -24,20 +24,20 @@ MonoBehaviour: - {r: 0, g: 1, b: 0.2163105, a: 1} - {r: 0, g: 0.3028021, b: 1, a: 1} - {r: 0.44855833, g: 0, b: 1, a: 1} - gazeCursorPrefab: {fileID: 1000012072213228, guid: 5b3e2856904e43c680f84f326861032a, type: 3} + gazeCursorPrefab: {fileID: 1000012072213228, guid: 521049f9431e342478200d59fce43f92, type: 3} gazeProviderType: reference: Microsoft.MixedReality.Toolkit.Input.GazeProvider, Microsoft.MixedReality.Toolkit.Services.InputSystem useHeadGazeOverride: 0 isEyeTrackingEnabled: 0 pointerOptions: - controllerType: 5167 - handedness: 255 + handedness: 7 pointerPrefab: {fileID: 1247086986094436, guid: d5b94136462644c9873bb3347169ae7e, type: 3} prioritizedLayerMasks: - serializedVersion: 2 m_Bits: 4294967291 - controllerType: 5167 - handedness: 255 + handedness: 7 pointerPrefab: {fileID: 1196247974088106, guid: c4fd3c6fc7ff484eb434775066e7f327, type: 3} prioritizedLayerMasks: - serializedVersion: 2 diff --git a/Assets/MixedRealityToolkit.Generated/CustomProfiles/MixedRealityPointerProfile.asset.meta b/Assets/MixedRealityToolkit.Generated/CustomProfiles/MixedRealityPointerProfile.asset.meta index da0f92d..965e964 100644 --- a/Assets/MixedRealityToolkit.Generated/CustomProfiles/MixedRealityPointerProfile.asset.meta +++ b/Assets/MixedRealityToolkit.Generated/CustomProfiles/MixedRealityPointerProfile.asset.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: fdfb208c60919af48b98ceb96d18671e +guid: 105274074c153e04896aa625cb5d6ae5 NativeFormatImporter: externalObjects: {} mainObjectFileID: 11400000 diff --git a/Assets/Scenes/WebView.unity b/Assets/Scenes/WebView.unity index dcc64af..a2df4ca 100644 --- a/Assets/Scenes/WebView.unity +++ b/Assets/Scenes/WebView.unity @@ -241,15 +241,15 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 14 - m_fontSizeBase: 14 + m_fontSize: 18 + m_fontSizeBase: 18 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 m_HorizontalAlignment: 1 - m_VerticalAlignment: 256 + m_VerticalAlignment: 512 m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 @@ -387,7 +387,7 @@ MonoBehaviour: m_HideSoftKeyboard: 0 m_CharacterValidation: 0 m_RegexValue: - m_GlobalPointSize: 14 + m_GlobalPointSize: 16 m_CharacterLimit: 0 m_OnEndEdit: m_PersistentCalls: @@ -415,7 +415,7 @@ MonoBehaviour: m_Calls: [] m_CaretColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_CustomCaretColor: 0 - m_SelectionColor: {r: 0.65882355, g: 0.80784315, b: 1, a: 0.7529412} + m_SelectionColor: {r: 0.4392157, g: 0.4392157, b: 0.4392157, a: 0.7529412} m_Text: m_CaretBlinkRate: 0.85 m_CaretWidth: 1 @@ -474,7 +474,7 @@ RectTransform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 76995324} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: -1} + m_LocalPosition: {x: 0, y: 0, z: 1} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: @@ -650,7 +650,7 @@ RectTransform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 102826381} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: -5} + m_LocalPosition: {x: 0, y: 0, z: 1} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: @@ -729,15 +729,15 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 14 - m_fontSizeBase: 14 + m_fontSize: 18 + m_fontSizeBase: 18 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 2 m_HorizontalAlignment: 1 - m_VerticalAlignment: 256 + m_VerticalAlignment: 512 m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 @@ -1499,7 +1499,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 3231283774461358941, guid: 4410a2a17e71713438d8cf4ebc93d9a4, type: 3} propertyPath: m_RootOrder - value: 3 + value: 1 objectReference: {fileID: 0} - target: {fileID: 3231283774461358941, guid: 4410a2a17e71713438d8cf4ebc93d9a4, type: 3} propertyPath: m_LocalScale.x @@ -1519,7 +1519,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 3231283774461358941, guid: 4410a2a17e71713438d8cf4ebc93d9a4, type: 3} propertyPath: m_LocalPosition.z - value: -5 + value: 1 objectReference: {fileID: 0} - target: {fileID: 3231283774461358941, guid: 4410a2a17e71713438d8cf4ebc93d9a4, type: 3} propertyPath: m_LocalRotation.w @@ -1666,15 +1666,15 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 14 - m_fontSizeBase: 14 + m_fontSize: 18 + m_fontSizeBase: 18 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 m_HorizontalAlignment: 1 - m_VerticalAlignment: 256 + m_VerticalAlignment: 512 m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 @@ -1831,12 +1831,12 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 963194225} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: bf98dd1206224111a38765365e98e207, type: 3} m_Name: m_EditorClassIdentifier: - lockCursorWhenFocusLocked: 1 + lockCursorWhenFocusLocked: 0 setCursorInvisibleWhenFocusLocked: 0 maxGazeCollisionDistance: 10 raycastLayerMasks: @@ -2046,15 +2046,15 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 14 - m_fontSizeBase: 14 + m_fontSize: 18 + m_fontSizeBase: 18 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 2 m_HorizontalAlignment: 1 - m_VerticalAlignment: 256 + m_VerticalAlignment: 512 m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0