Skip to content

Conversation

@marklundin
Copy link
Collaborator

Updated playcanvas/react docs to include the xrCompatible flag which was causing XR/AR mode to fail

Added XR compatibility requirements and code example.
@marklundin marklundin requested a review from Copilot October 28, 2025 16:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the PlayCanvas React XR documentation to include the critical xrCompatible flag requirement, which was previously missing and causing XR/AR functionality to fail.

Key Changes:

  • Added xrCompatible: true flag to graphics device options as a prerequisite for XR functionality
  • Reorganized setup instructions to prioritize XR compatibility configuration
  • Added new documentation section explaining the purpose and usage of the xrCompatible flag

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

showControls={false}
>
<Application>
<Application graphicsDeviceOptions={{ xrCompatible: true }}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't this already default to true when the engine initializes? I don't need this in Web Components.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually you're right. For some reason I've overridden the engine default to be false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants