Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
## [1.6.0] - 2022-11-29
### Fixed
* Fixed black game window issue when building a URP project.
* Fixed `InputDevice.TryGetHapticCapabilities` always return True with OpenXR.
* Fixed repeated warnings for failed to restart OpenXR when no HMD is attached.
* Fixed invalid pose values got populated when tracked flags are invalid.
* Fixed XR_SPACE_BOUNDS_UNAVAILABLE return code marked as Error in the log.

### Updated
* Updated Input System dependency to 1.4.4.

### Added
* Added `Meta Quest Feature` support for Android and deprecated previous `Oculus Quest Feature`. Also added a new validation rule to support new Meta Quest Feature migration.
* Added API `MetaQuestFeature.AddTargetDevice` to add additional target devices to the devices list in the MetaQuestFeatureEditor.
* Added Thumbrest Touch support in Oculus Touch Controller Interaction Profile.
* Added a new optional validation rule to switch to use InputSystem.XR.PoseControl instead of OpenXR.Input.PoseControl, which fixed PoseControl conflicts in InputSystem.XR and OpenXR.Input. Note: If opt in to use InputSystem.XR.PoseControl, `USE_INPUT_SYSTEM_POSE_CONTROL` will be added in Scripting Define Symbols under Player settings.
  • Loading branch information
Unity Technologies committed Nov 29, 2022
1 parent d8f8fe0 commit 3ca8bb9
Show file tree
Hide file tree
Showing 162 changed files with 1,636 additions and 619 deletions.
19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,24 @@ All notable changes to this package will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.5.3] - 2022-09-18
## [1.6.0] - 2022-11-29
### Fixed
* Fixed black game window issue when building a URP project.
* Fixed `InputDevice.TryGetHapticCapabilities` always return True with OpenXR.
* Fixed repeated warnings for failed to restart OpenXR when no HMD is attached.
* Fixed invalid pose values got populated when tracked flags are invalid.
* Fixed XR_SPACE_BOUNDS_UNAVAILABLE return code marked as Error in the log.

### Updated
* Updated Input System dependency to 1.4.4.

### Added
* Added `Meta Quest Feature` support for Android and deprecated previous `Oculus Quest Feature`. Also added a new validation rule to support new Meta Quest Feature migration.
* Added API `MetaQuestFeature.AddTargetDevice` to add additional target devices to the devices list in the MetaQuestFeatureEditor.
* Added Thumbrest Touch support in Oculus Touch Controller Interaction Profile.
* Added a new optional validation rule to switch to use InputSystem.XR.PoseControl instead of OpenXR.Input.PoseControl, which fixed PoseControl conflicts in InputSystem.XR and OpenXR.Input. Note: If opt in to use InputSystem.XR.PoseControl, `USE_INPUT_SYSTEM_POSE_CONTROL` will be added in Scripting Define Symbols under Player settings.

## [1.5.2] - 2022-09-08
### Fixed
* Fixed `XRInputSubsystem.TryGetBoundaryPoints` returning inaccurate values. If you have guardian/boundary setup in the headset, `TryGetBoundaryPoints` will return a List<Vector3> of size 4 representing the four vertices of the Play Area rectangle, which is centered at the origin and edges corresponding to the X and Z axes of the provided space. Not all systems or spaces may support boundaries.
* Fixed an issue that controllers position not getting updated and stuck to the floor level when Oculus Integration Asset installed in the project.
Expand Down
2 changes: 1 addition & 1 deletion ConformanceAutomation/android.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ConformanceAutomation/android/arm64.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified ConformanceAutomation/android/arm64/ConformanceAutomationExt.so
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ConformanceAutomation/universalwindows.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ConformanceAutomation/universalwindows/arm32.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ConformanceAutomation/universalwindows/arm64.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ConformanceAutomation/universalwindows/x64.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ConformanceAutomation/windows.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ConformanceAutomation/windows/x64.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified ConformanceAutomation/windows/x64/ConformanceAutomationExt.dll
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions MetaQuest.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions MetaQuest/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 73 additions & 0 deletions MetaQuest/Editor/MetaQuestFeatureEditor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.OpenXR;

using UnityEngine.XR.OpenXR.Features.MetaQuestSupport;

namespace UnityEditor.XR.OpenXR.Features.MetaQuestSupport
{
[CustomEditor(typeof(MetaQuestFeature))]
internal class MetaQuestFeatureEditor : Editor
{
struct TargetDeviceProperty
{
public SerializedProperty property;
public GUIContent label;
}

private List<TargetDeviceProperty> targetDeviceProperties;
private Dictionary<string, bool> activeTargetDevices;

void InitActiveTargetDevices()
{
activeTargetDevices = new Dictionary<string, bool>();

OpenXRSettings androidOpenXRSettings = OpenXRSettings.GetSettingsForBuildTargetGroup(BuildTargetGroup.Android);
var questFeature = androidOpenXRSettings.GetFeature<MetaQuestFeature>();

if (questFeature == null)
return;

foreach (var dev in questFeature.targetDevices)
{
activeTargetDevices.Add(dev.manifestName, dev.active);
}
}
void OnEnable()
{
targetDeviceProperties = new List<TargetDeviceProperty>();
InitActiveTargetDevices();
if (activeTargetDevices.Count == 0)
return;
var targetDevicesProperty = serializedObject.FindProperty("targetDevices");

for (int i = 0; i < targetDevicesProperty.arraySize; ++i)
{
var targetDeviceProp = targetDevicesProperty.GetArrayElementAtIndex(i);
var propManifestName = targetDeviceProp.FindPropertyRelative("manifestName");

// don't present inactive target devices to the user
if (propManifestName == null || activeTargetDevices[propManifestName.stringValue] == false)
continue;
var propEnabled = targetDeviceProp.FindPropertyRelative("enabled");
var propName = targetDeviceProp.FindPropertyRelative("visibleName");
TargetDeviceProperty curTarget = new TargetDeviceProperty {property = propEnabled, label = EditorGUIUtility.TrTextContent(propName.stringValue)};
targetDeviceProperties.Add(curTarget);
}
}

public override void OnInspectorGUI()
{
serializedObject.Update();
EditorGUILayout.LabelField("Target Devices", EditorStyles.boldLabel);

foreach (var device in targetDeviceProperties)
{
EditorGUILayout.PropertyField(device.property, device.label);
}

serializedObject.ApplyModifiedProperties();
}
}
}
11 changes: 11 additions & 0 deletions MetaQuest/Editor/MetaQuestFeatureEditor.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3ca8bb9

Please sign in to comment.