trev3d / QuestDisplayAccessDemo

Inefficient sample code for getting screen contents in Unity on Meta Quest to workaround lack of 'camera access'
MIT License
172 stars 33 forks source link

Support for Unity 2022.3 LTS #12

Open TheXRGuy-mw opened 2 weeks ago

TheXRGuy-mw commented 2 weeks ago

The latest updates to the repository now require Unity 2023 LTS (aka Unity 6000). As many developers are still using Unity 2022.3 LTS for a variety of reasons, it would be great to add back the Unity 2022 LTS support.

I have done a downgrade already and fixed all errors to create a working build. If you want to, I can make a pull request and put it into a separate branch so people can decide which way to go.

Changes involve: Android Manifest, Gradle Main Template DisplayCaptureNotificationService DisplayCaptureManager.java BarcodeReader.java

trev3d commented 2 weeks ago

would appreciate it! I thought the repo would be compatible with 2022 but I guess not.

TheXRGuy-mw commented 2 weeks ago

Great. I fixed all issues and tested the build on my Quest 3 including the QR code scanning feature. The pull request is here:

https://github.com/trev3d/QuestDisplayAccessDemo/pull/13

Be mindful that this might conflict with the current project settings for Unity 6000. So it could be a good idea to branch this out into a feature branch for 2022.3 LTS. But I am not able to do this from my side of course as PRs usually go back to main / master.