-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
## [1.10.0] - 2024-01-26 ### Added * Added `OpenXRSettings.VulkanAdditionalGraphicsQueue` property to request at startup an additional Vulkan graphics queue in devices that require it. The setting can be enabled through the Project settings UI and build code. * Added `Optimize Buffer Discards (Vulkan)` feature setting option within MetaQuestFeature. * Added a new optional validation rule to switch to use InputSystem.Controls.StickControl instead of Vector2Control for thumbsticks. StickControl allows more input options for thumbstick-based control, such as acting as both a combined 2D vector, two independent axes or a four-way Dpad with 4 independent buttons. ### Changed * Updated project validation rule for Meta Quest Feature - "Select Oculus Touch Interaction Profile or Meta Quest Pro Touch Interaction Profile to pair with." from error to warning to allow other interaction profiles to be enabled as well, like eye gaze or palm pose. ### Fixed * Fixed Meta XR `Space Warp` feature crashing issue when trying to access the depth swapchain. * Fixed Meta XR `Space Warp` depth subimage imageArrayIndex setup wrong issue for multiview render mode. * Fixed a bug where Palm Pose won't work if the Eye Gaze Interaction Profile is added to the project. * Fixed "The type 'AnalyticsResult' is defined in an assembly that is not referenced" error thrown. * Fixed UnitySwapchain destructor to completely destroy swapchains to avoid memory leak. * Fixed OpenXR Settings UI to not render settings on platforms that aren't supported. * Fixed Android manifest entries were added when the feature was not enabled.
- Loading branch information
There are no files selected for viewing
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.
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.
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.
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.
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.
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.
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.
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.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,39 @@ | ||
using UnityEditor.Build.Reporting; | ||
using UnityEditor.XR.Management; | ||
using UnityEditor.XR.OpenXR.Features; | ||
using UnityEngine.XR.OpenXR; | ||
|
||
namespace UnityEditor.XR.OpenXR | ||
{ | ||
internal class OpenXRBuildProcessor : XRBuildHelper<OpenXRSettings> | ||
{ | ||
private const string kRequestAdditionalVulkanGraphicsQueue = "xr-request-additional-vulkan-graphics-queue"; | ||
|
||
public override string BuildSettingsKey => Constants.k_SettingsKey; | ||
|
||
private readonly BootConfigBuilder _bootConfigBuilder = new BootConfigBuilder(); | ||
|
||
public override UnityEngine.Object SettingsForBuildTargetGroup(BuildTargetGroup buildTargetGroup) | ||
{ | ||
EditorBuildSettings.TryGetConfigObject(Constants.k_SettingsKey, out OpenXRPackageSettings packageSettings); | ||
if (packageSettings == null) | ||
return null; | ||
return packageSettings.GetSettingsForBuildTargetGroup(buildTargetGroup); | ||
} | ||
|
||
public override void OnPreprocessBuild(BuildReport report) | ||
{ | ||
base.OnPreprocessBuild(report); | ||
|
||
_bootConfigBuilder.ReadBootConfig(report); | ||
|
||
#if UNITY_STANDALONE_WIN || UNITY_ANDROID | ||
var settings = OpenXREditorSettings.Instance; | ||
if (settings != null) | ||
{ | ||
_bootConfigBuilder.SetBootConfigBoolean(kRequestAdditionalVulkanGraphicsQueue, settings.VulkanAdditionalGraphicsQueue); | ||
} | ||
#endif | ||
} | ||
} | ||
} |