Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor WMRUtilities to support Unity legacy XR and XR SDK #6989

Merged

Conversation

keveleigh
Copy link
Contributor

Overview

Refactors the static WindowsMixedRealityUtilities to take in a provider, which can be set in platform-specific data providers. This allows the utilities class to be called generically regardless of the Unity XR backend.

Changes

  • Fixes: the current build break when using DotNetWinRT.

@keveleigh keveleigh added Cross Platform Platform - Windows Mixed Reality Issues specific to the Windows Mixed Reality platform labels Jan 7, 2020
@keveleigh keveleigh added this to the MRTK 2.3.0 milestone Jan 7, 2020
@keveleigh keveleigh requested a review from wiwei as a code owner January 7, 2020 00:49
@keveleigh keveleigh self-assigned this Jan 7, 2020
@keveleigh
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@keveleigh
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@keveleigh
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Copy link
Contributor

@wiwei wiwei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall changes seem alright to me modulo some naming things (and also probably seeing the other side of the changes) but I feel good about reasonable decisions being made here with the feedback.

@keveleigh
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@@ -24,12 +24,12 @@ public struct HolographicFrameNativeData
public uint MaxNumberOfCameras;

/// <summary>
/// The current native root <see href="https://docs.microsoft.com/uwp/api/windows.perception.spatial.spatialcoordinatesystem">ISpatialCoordinateSystem</see>).
/// The current native root <see href="https://docs.microsoft.com/uwp/api/windows.perception.spatial.spatialcoordinatesystem">ISpatialCoordinateSystem</see>.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this the root pointer for all native access? not sure what "root" means here

Copy link
Contributor Author

@keveleigh keveleigh Jan 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the ISpatialCoordinateSystem at the root of the scene. Happy to use a different word if something else makes it more clear!

The current native root ISpatialCoordinateSystem

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore me.... i missed the <see ... /> part of the comment. it is fine as is

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error:BaseWindowsMixedRealityCameraSettings.cs(54,17): error CS0246: The type or namespace name 'WindowsMixedRealityCameraSettingsProfile' could not be found (are you missing a using directive or an assembly reference?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LongForever1993 Where and when are you seeing that error? Please file an issue if it's consistent.

Copy link

@david-c-kline david-c-kline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. a few comments / questions.

@keveleigh
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Copy link

@david-c-kline david-c-kline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@keveleigh keveleigh merged commit b7b9fb9 into microsoft:mrtk_development Jan 7, 2020
@keveleigh keveleigh deleted the refactor-wmrutilities branch January 7, 2020 20:39
@keveleigh keveleigh added the Platform - XR SDK For Issues and PRs related to Unity's XR SDK pipeline. label Jan 7, 2020
@keveleigh keveleigh mentioned this pull request Jan 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cross Platform Platform - Windows Mixed Reality Issues specific to the Windows Mixed Reality platform Platform - XR SDK For Issues and PRs related to Unity's XR SDK pipeline.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants