diff --git a/Assets/Scenes/Interface v4_test.unity b/Assets/Scenes/Interface v4_test.unity index e820732..fca73bd 100644 --- a/Assets/Scenes/Interface v4_test.unity +++ b/Assets/Scenes/Interface v4_test.unity @@ -297,6 +297,7 @@ GameObject: m_Component: - component: {fileID: 30312108} - component: {fileID: 30312107} + - component: {fileID: 30312109} m_Layer: 0 m_Name: Historique m_TagString: HistoriqueMsg @@ -338,7 +339,7 @@ RectTransform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 30312106} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalPosition: {x: 0, y: 0, z: -3} m_LocalScale: {x: 0.0015, y: 0.0015, z: 0.0015} m_ConstrainProportionsScale: 0 m_Children: @@ -348,9 +349,21 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchoredPosition: {x: 1, y: 1.2} m_SizeDelta: {x: 400, y: 400} m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &30312109 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 30312106} + m_Enabled: 0 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 43ee61caa71f0774695520d49a722b33, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1 &38209876 GameObject: m_ObjectHideFlags: 0 @@ -3016,6 +3029,10 @@ PrefabInstance: propertyPath: m_SizeDelta.y value: 0 objectReference: {fileID: 0} + - target: {fileID: 440948658443708140, guid: b8573c816e5b6b54ebf34e1253271cb1, type: 3} + propertyPath: m_SizeDelta.x + value: 1024 + objectReference: {fileID: 0} - target: {fileID: 466201683838070002, guid: b8573c816e5b6b54ebf34e1253271cb1, type: 3} propertyPath: m_AnchorMax.y value: 0 @@ -9430,7 +9447,7 @@ RectTransform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 545897465} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalPosition: {x: 0, y: 0, z: -0.00007947286} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: @@ -9909,7 +9926,7 @@ MonoBehaviour: m_Calls: - m_Target: {fileID: 1875844693} m_TargetAssemblyTypeName: RunWhisper, Assembly-CSharp - m_MethodName: StartMicrophoneInference + m_MethodName: DemarrerEnregistrement m_Mode: 1 m_Arguments: m_ObjectArgument: {fileID: 0} @@ -13803,7 +13820,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!114 &1167643597 MonoBehaviour: m_ObjectHideFlags: 0 @@ -18889,7 +18906,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!114 &1894144126 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/BuildConstants.cs b/Assets/Scripts/BuildConstants.cs index a5178b4..90e8ff4 100644 --- a/Assets/Scripts/BuildConstants.cs +++ b/Assets/Scripts/BuildConstants.cs @@ -1,5 +1,5 @@ public static class BuildConstants { - public const string LocalIP = "10.42.133.242"; + public const string LocalIP = "10.98.116.11"; } \ No newline at end of file diff --git a/Assets/Scripts/HUDMain.cs b/Assets/Scripts/HUDMain.cs index 674381e..5a85709 100644 --- a/Assets/Scripts/HUDMain.cs +++ b/Assets/Scripts/HUDMain.cs @@ -9,11 +9,19 @@ public class HUDMain : MonoBehaviour void Update() { - Quaternion rotation_offset = Quaternion.Euler(45, 0, 0); - m_window.position = controller.TransformPoint(new Vector3(0f, 0.1f, 0f)); - m_window.rotation = controller.rotation * rotation_offset; InputDevice mainGauche = InputDevices.GetDeviceAtXRNode(XRNode.LeftHand); + if (mainGauche.TryGetFeatureValue(CommonUsages.isTracked, out bool tracked) && tracked) + { + Quaternion rotation_offset = Quaternion.Euler(45, 0, 0); + m_window.position = controller.TransformPoint(new Vector3(0f, 0.1f, 0f)); + m_window.rotation = controller.rotation * rotation_offset; + } + + + + if (!mainGauche.isValid) + return; } }