Skip to content

Conversation

@parisacognitive3d
Copy link
Contributor

This PR includes updates and improvements for XRPF 2.0:

  • Refactored the entire XR Privacy Agreement UI
  • Made the popup customizable via the PrivacyAgreementCanvas component
  • Updated the minimum Unity version to 2021.3 to align with Unity SDK 2.0
  • Added Audio permission support to the agreement UI

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 refactors the XR Privacy Framework for version 2.0, introducing a redesigned, theme-customizable privacy agreement UI and adding support for audio permissions. The minimum Unity version requirement has been updated from 2019.4 to 2021.3 to align with Unity SDK 2.0 compatibility.

Key Changes:

  • Added audio data permission support across the entire framework
  • Completely refactored PrivacyAgreementCanvas component with customizable theming system
  • Enhanced Foldout component with theme color application methods
  • Introduced new UI shaders and materials for gradient and radial glow effects

Reviewed changes

Copilot reviewed 33 out of 52 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
package.json Bumped version to 2.0.0 and updated minimum Unity requirement to 2021.3
Runtime/XRPrivacyFramework.cs Added IsAudioDataAllowed property to interfaces and agreement classes; updated SetNewAgreement signature
Samples~/CodeSamples/SaveToPreferences.cs Added audio field to preferences class and updated serialization/deserialization logic
Samples~/AgreementPopup/Scripts/PrivacyAgreementCanvas.cs Complete rewrite with ColorTheme system, theme application methods, and editor inspector customization
Samples~/AgreementPopup/Scripts/Foldout.cs Added SetThemeColors, UpdateVisualState, and OnToggleValueChanged methods for theme support
Samples~/AgreementPopup/Content/* Added new UI shaders (UIGradient, UIRadialGlow), materials, sprites, and icon assets
Samples~/AgreementPopup/Content/DataSourcePanel.prefab Updated prefab with new UI structure, icons, improved layout, and theme-aware components
Comments suppressed due to low confidence (1)

Samples~/CodeSamples/SaveToPreferences.cs:25


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

@parisacognitive3d parisacognitive3d merged commit 385db18 into main Dec 31, 2025
1 check passed
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