- Issue category: Developer Tools
- Device type & OS version: Android
- Host machine & OS version: Mac
- Issue Environment : On Device
- ARDK version: 2.5.2
- Unity version: 2021.3.27
Description of the issue:
When the viewport rect of the ARScene camera is changed to (X=0,Y=0.25,W=1,H=0.75), the ARHitTester script is not working correctly.
I believe that the camera viewport needs to stay at its default for an ARDK session, but let me look into this a little further and get back to you.
Thanks for your patience, things have been a little busy with the release of ARDK 3.
For this issue, is there a particular reason you need to have a differently sized viewport? ARDK expects the viewport to be in normalized coordinates so within the range of 0 - 1 which is the default. If you’re attempting to use different size viewports, you would need to take that into account by taking the ratio between the width and the height and using that in your calculations. Keep in mind this may not lead to the most accurate results like the default viewport, but it will be greatly improved.
In your case, it looks like the Width is still 1 since it spans from 0 to 1, but the Height is now .5 since it spans from .25 to .75