Skip to content

test: cleanup XRUtility before upgrading Graphics Test Framework#854

Merged
sindharta merged 2 commits into
masterfrom
xr-utility
Jun 24, 2026
Merged

test: cleanup XRUtility before upgrading Graphics Test Framework#854
sindharta merged 2 commits into
masterfrom
xr-utility

Conversation

@sindharta

Copy link
Copy Markdown
Collaborator

No description provided.

@sindharta sindharta changed the title cleanup XR Utiolity test: cleanup XRUtility before upgrading Graphics Test Framework Jun 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown

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 refactors XRUtility used by the toon shader graphics test package to make XR enable/disable behavior clearer ahead of a Graphics Test Framework upgrade.

Changes:

  • Caches XRManagerSettings in EnableXRInEditor() to reduce repeated XRGeneralSettings.Instance.Manager access.
  • Adds InitManagerOnStart toggling when enabling/disabling XR.
  • Restructures DisableXR() to guard access to XRGeneralSettings.Instance before manipulating the manager.

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

Comment thread com.unity.toon-graphics-test/Runtime/XRUtility.cs Outdated
Comment thread com.unity.toon-graphics-test/Runtime/XRUtility.cs

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread com.unity.toon-graphics-test/Runtime/XRUtility.cs
Comment thread com.unity.toon-graphics-test/Runtime/XRUtility.cs

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread com.unity.toon-graphics-test/Runtime/XRUtility.cs
@sindharta sindharta merged commit af67a63 into master Jun 24, 2026
33 checks passed
@sindharta sindharta deleted the xr-utility branch June 24, 2026 14:06
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.

2 participants