Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
## [4.0.3] - 2021-04-22
### Fixes
* Minor fix to deprecation messaging for Windows Mixed Reality.

## [4.0.2] - 2021-04-16

### Fixes
* When using `XRLoaderHelper`, Subsystems are now correctly removed from the cached subsystems map once they are destroyed.
* Fixed an issue where a `NullReferenceException` could be thrown if a Package Manager query failed but returned completed when updating known packages.
* Fixed an issue where `Plug-in Provider` user interface documentation link redirected to an old version of the documentation.
* Fixed an issue where `TryAddLoader` could ignore the safety checks when modifying the registered loaders in the editor during playmode.
* Fixed an issue where `TryRemoveLoader` could remove a registered loader even if the loader is still in the list of `currentLoaders`.

### Changes
* Add `Open XR` to the list of known plug-in providers when on Unity version 2020.3 and above.
* Added additional safety checks to the behaviour of `TryAddLoader` and `TryRemoveLoader` in the editor. Both now user `EditorApplication.isPlaying` instead of `Application.IsPlaying` when determining whether the editor is in play mode.
  • Loading branch information
Unity Technologies committed Apr 22, 2021
1 parent 25519c3 commit 81ef9c5
Show file tree
Hide file tree
Showing 15 changed files with 1,181 additions and 916 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ 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).

## [4.0.3] - 2021-04-22
### Fixes
* Minor fix to deprecation messaging for Windows Mixed Reality.

## [4.0.2] - 2021-04-16

### Fixes
* When using `XRLoaderHelper`, Subsystems are now correctly removed from the cached subsystems map once they are destroyed.
* Fixed an issue where a `NullReferenceException` could be thrown if a Package Manager query failed but returned completed when updating known packages.
* Fixed an issue where `Plug-in Provider` user interface documentation link redirected to an old version of the documentation.
* Fixed an issue where `TryAddLoader` could ignore the safety checks when modifying the registered loaders in the editor during playmode.
* Fixed an issue where `TryRemoveLoader` could remove a registered loader even if the loader is still in the list of `currentLoaders`.

### Changes
* Add `Open XR` to the list of known plug-in providers when on Unity version 2020.3 and above.
* Added additional safety checks to the behaviour of `TryAddLoader` and `TryRemoveLoader` in the editor. Both now user `EditorApplication.isPlaying` instead of `Application.IsPlaying` when determining whether the editor is in play mode.

## [4.0.1] - 2021-01-22
* Changed `activeLoaders` to instead of returning a shallow copy, it will now just return a read only list to prevent additional garbage collection.
* Changed the behavior of `TryRemoveLoader` to return `true` if the loader is no longer present in the list even if it wasn't present to begin with.
Expand Down
22 changes: 22 additions & 0 deletions Editor/Metadata/KnownPackages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,27 @@ static List<IXRPackage> InitKnownPackages()
{
List<IXRPackage> packages = new List<IXRPackage>();

#if UNITY_2020_3_OR_NEWER
packages.Add(new KnownPackage() {
metadata = new KnownPackageMetadata(){
packageName = "Open XR Plugin",
packageId = "com.unity.xr.openxr",
settingsType = "UnityEditor.XR.OpenXR.OpenXRPackageSettings",
loaderMetadata = new List<IXRLoaderMetadata>() {
new KnownLoaderMetadata() {
loaderName = "Open XR",
loaderType = "UnityEngine.XR.OpenXR.OpenXRLoader",
supportedBuildTargets = new List<BuildTargetGroup>() {
BuildTargetGroup.Standalone,
BuildTargetGroup.WSA
}
},
}
}
});
#endif

#if !UNITY_2021_2_OR_NEWER
packages.Add(new KnownPackage() {
metadata = new KnownPackageMetadata(){
packageName = "Windows XR Plugin",
Expand All @@ -56,6 +77,7 @@ static List<IXRPackage> InitKnownPackages()
}
}
});
#endif

packages.Add(new KnownPackage() {
metadata = new KnownPackageMetadata(){
Expand Down
Loading

0 comments on commit 81ef9c5

Please sign in to comment.