Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
## [1.2.8] - 2021-07-29
* Fixed an issue that was causing Oculus Android OpenGL builds to stop working after v31 of the oculus software was installed.
* Fixed a bug that would cause Asset Bundles to fail building in some circumstances when OpenXR was included in the project.
* Fixed a crash that would occur if XR was shut down from within a Feature callback.
* Fixed a bug that was causing duplicate entries in the OpenXR Package Settings file.
* Fixed a bug causing angular velocities on both the HMD and controllers to have the wrong sign when compared to the other Unity XR plugins
  • Loading branch information
Unity Technologies committed Jul 29, 2021
1 parent 87d0c03 commit 0abaa89
Show file tree
Hide file tree
Showing 103 changed files with 173 additions and 96 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ 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.2.8] - 2021-07-29
* Fixed an issue that was causing Oculus Android OpenGL builds to stop working after v31 of the oculus software was installed.
* Fixed a bug that would cause Asset Bundles to fail building in some circumstances when OpenXR was included in the project.
* Fixed a crash that would occur if XR was shut down from within a Feature callback.
* Fixed a bug that was causing duplicate entries in the OpenXR Package Settings file.
* Fixed a bug causing angular velocities on both the HMD and controllers to have the wrong sign when compared to the other Unity XR plugins

## [1.2.3] - 2021-06-17
* Updated OpenXR Loader to 1.0.17
* Fixed missing haptic output on HTC Vive controller profile
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.

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.

1 change: 0 additions & 1 deletion Editor/FeatureSupport/FeatureHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ public static AllFeatureInfo GetAllFeatureInfo(BuildTargetGroup group)
var openXrSettings = OpenXRPackageSettings.GetOrCreateInstance().GetSettingsForBuildTargetGroup(group);
if (openXrSettings == null)
{
Debug.LogError("Invalid OpenXR Settings");
return ret;
}

Expand Down
15 changes: 15 additions & 0 deletions Editor/FeatureSupport/OpenXRChooseRuntimeLibraries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,20 @@ public void OnPreprocessBuild(BuildReport report)
}
}
}

[InitializeOnLoadMethod]
static void InitializeOnLoad ()
{
var importers = PluginImporter.GetAllImporters();

// fixes asset bundle building since IPreProcessBuildWithReport isn't called
foreach (var importer in importers)
{
if (importer.assetPath.Contains("openxr_loader"))
{
importer.SetIncludeInBuildDelegate(path => false);
}
}
}
}
}
23 changes: 9 additions & 14 deletions Editor/FeatureSupport/OpenXRFeatureSetManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,17 @@ namespace UnityEditor.XR.OpenXR.Features
[InitializeOnLoad]
public static class OpenXRFeatureSetManager
{

static OpenXRFeatureSetManager()
{
OpenXRFeature.canSetFeatureDisabled = CanFeatureBeDisabled;
AssemblyReloadEvents.afterAssemblyReload += OnAssemblyReload;
}

static void OnAssemblyReload()
[InitializeOnLoadMethod]
static void InitializeOnLoad ()
{
InitializeFeatureSets();
}
void OnFirstUpdate()
{
EditorApplication.update -= OnFirstUpdate;
InitializeFeatureSets();
}

internal static void FirstRunInitOfFeatureSets()
{
EditorApplication.update -= FirstRunInitOfFeatureSets;
InitializeFeatureSets();
OpenXRFeature.canSetFeatureDisabled = CanFeatureBeDisabled;
EditorApplication.update += OnFirstUpdate;
}

/// <summary>
Expand Down
13 changes: 13 additions & 0 deletions Editor/OpenXRPackageSettings.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEditor.XR.OpenXR.Features;
using UnityEditor.Build;
using UnityEditor.Experimental;
using UnityEngine;
using UnityEngine.XR.Management;
using UnityEngine.XR.OpenXR;
Expand Down Expand Up @@ -100,12 +102,23 @@ public string GetActiveLoaderLibraryPath()
return OpenXRChooseRuntimeLibraries.GetLoaderLibraryPath();
}

private bool IsValidBuildTargetGroup(BuildTargetGroup buildTargetGroup) =>
buildTargetGroup == BuildTargetGroup.Standalone ||
Enum.GetValues(typeof(BuildTarget)).Cast<BuildTarget>().Any(bt =>
{
var group = BuildPipeline.GetBuildTargetGroup(bt);
return group == buildTargetGroup && BuildPipeline.IsBuildTargetSupported(group, bt);
});

public OpenXRSettings GetSettingsForBuildTargetGroup(BuildTargetGroup buildTargetGroup)
{
OpenXRSettings ret = null;
Settings.TryGetValue(buildTargetGroup, out ret);
if (ret == null)
{
if (!IsValidBuildTargetGroup(buildTargetGroup))
return null;

ret = ScriptableObject.CreateInstance<OpenXRSettings>();
if (Settings.ContainsKey(buildTargetGroup))
{
Expand Down
2 changes: 1 addition & 1 deletion MockDriver/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 MockDriver/windows/x64.meta

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

Binary file modified MockDriver/windows/x64/mock_driver.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion MockDriver/windows/x64/mock_driver.dll.meta

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

2 changes: 1 addition & 1 deletion MockRuntime/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 MockRuntime/windows/x64.meta

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

Binary file modified MockRuntime/windows/x64/openxr_loader.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion MockRuntime/windows/x64/openxr_loader.dll.meta

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

1 change: 0 additions & 1 deletion Runtime/Features/OpenXRFeature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ internal static void GetValidationList(List<ValidationRule> rules, BuildTargetGr
var openXrSettings = OpenXRSettings.GetSettingsForBuildTargetGroup(targetGroup);
if (openXrSettings == null)
{
Debug.LogError("Invalid OpenXR Settings");
return;
}

Expand Down
2 changes: 1 addition & 1 deletion Runtime/UnitySubsystemsManifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "OpenXR XR Plugin",
"version": "1.2.3",
"version": "1.2.8",
"libraryName": "UnityOpenXR",
"displays": [
{
Expand Down
2 changes: 1 addition & 1 deletion Runtime/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 Runtime/android/arm64.meta

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

Binary file modified Runtime/android/arm64/libUnityOpenXR.so
Binary file not shown.
2 changes: 1 addition & 1 deletion Runtime/android/arm64/libUnityOpenXR.so.meta

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

2 changes: 1 addition & 1 deletion Runtime/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 Runtime/universalwindows/arm32.meta

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

Binary file modified Runtime/universalwindows/arm32/UnityOpenXR.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion Runtime/universalwindows/arm32/UnityOpenXR.dll.meta

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

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

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

Binary file modified Runtime/universalwindows/arm64/UnityOpenXR.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion Runtime/universalwindows/arm64/UnityOpenXR.dll.meta

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

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

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

Binary file modified Runtime/universalwindows/x64/UnityOpenXR.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion Runtime/universalwindows/x64/UnityOpenXR.dll.meta

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

2 changes: 1 addition & 1 deletion Runtime/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 Runtime/windows/x64.meta

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

Binary file modified Runtime/windows/x64/UnityOpenXR.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion Runtime/windows/x64/UnityOpenXR.dll.meta

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

2 changes: 1 addition & 1 deletion RuntimeDebugger/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 RuntimeDebugger/android/arm64.meta

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

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

2 changes: 1 addition & 1 deletion RuntimeDebugger/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 RuntimeDebugger/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 RuntimeDebugger/universalwindows/arm64.meta

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

Binary file not shown.
Loading

0 comments on commit 0abaa89

Please sign in to comment.