Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
## [4.1.0-pre.2] - 2021-07-26
### Fixes
* More public API changes for  [1343655](https://issuetracker.unity3d.com/product/unity/issues/guid/1343655/).
  • Loading branch information
Unity Technologies committed Jul 26, 2021
1 parent e5626da commit b7695d4
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 22 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ 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.1.0-pre.2] - 2021-07-26
### Fixes
* More public API changes for [1343655](https://issuetracker.unity3d.com/product/unity/issues/guid/1343655/).

## [4.1.0-pre.1] - 2021-07-09
### Fixes
* Fix [1343655](https://issuetracker.unity3d.com/product/unity/issues/guid/1343655/) by adding an API for getting all package metadata so that users can use the correct information when dealing with package metadata store.
Expand Down
16 changes: 14 additions & 2 deletions Editor/Metadata/XRPackageMetadataStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,12 @@ public static IReadOnlyList<IXRPackage> GetAllPackageMetadataForBuildTarget(Buil
return ret.ToList().AsReadOnly();
}

internal static IXRPackageMetadata GetMetadataForPackage(string packageId)
/// <summary>
/// Given a package id, return the metadata for that package.
/// </summary>
/// <param name="packageId">The package id to check for.</param>
/// <returns>An instance of <see cref="IXRPackageMetadata" /> if the package has metadata or null.</returns>
public static IXRPackageMetadata GetMetadataForPackage(string packageId)
{
return s_Packages.Values.
Select(x => x.metadata).
Expand All @@ -246,7 +251,14 @@ internal static bool IsPackageInstallable(string package)
return s_CachedMDStoreInformation.installablePackages?.Contains(package) ?? false;
}

internal static bool IsLoaderAssigned(string loaderTypeName, BuildTargetGroup buildTargetGroup)
/// <summary>
/// Given a loader type and a build target group will return whether or not that loader
/// is currently assigned to be active for that build target.
/// </summary>
/// <param name="loaderTypeName">Loader type to check.</param>
/// <param name="buildTargetGroup">Build target group to check for assignment in.</param>
/// <returns></returns>
public static bool IsLoaderAssigned(string loaderTypeName, BuildTargetGroup buildTargetGroup)
{

var settings = XRGeneralSettingsPerBuildTarget.XRGeneralSettingsForBuildTarget(buildTargetGroup);
Expand Down
10 changes: 0 additions & 10 deletions ValidationExceptions.json

This file was deleted.

7 changes: 0 additions & 7 deletions ValidationExceptions.json.meta

This file was deleted.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.unity.xr.management",
"displayName": "XR Plugin Management",
"version": "4.1.0-pre.1",
"version": "4.1.0-pre.2",
"unity": "2019.4",
"unityRelease": "15f1",
"description": "Package that provides simple management of XR plug-ins. Manages and offers help with loading, initialization, settings, and build support for XR plug-ins.",
Expand All @@ -24,10 +24,10 @@
"repository": {
"url": "https://github.cds.internal.unity3d.com/unity/xr.sdk.management.git",
"type": "git",
"revision": "9cab3b65f780e760a46b77e66f5c8030e3f3861e"
"revision": "dfcdcda96f32e3ce8642269e7adfc633bb0e57b0"
},
"upmCi": {
"footprint": "2e960d8e2b79d4147f4e7048fe7c69b30eee63e7"
"footprint": "98c65deb81b1ee885bf7bf78f19f27f26ec4c056"
},
"samples": [
{
Expand Down

0 comments on commit b7695d4

Please sign in to comment.