Unable to set custom near clipping plane.
Something is overwriting the camera near clipping plane on update.
I searched for everything that references the cameras clipping plane - no luck
In previous versions if I would change:
private static readonly float MINIMUM_NEAR_CLIP_METERS of magicLeapCamera and it worked...
The MRTK camera profile doesn't do anything, were not working before.
Unity Editor version:
2022.2.0b8 ML2 OS version:
Magic Leap OS - 1.1.0-dev1 [B3E.221020.13-R.039] MLSDK version:
MRTK - 1.0.0-v1 Host OS: (Windows/MacOS)
Error messages from logs (syntax-highlighting is supported via Markdown):
Hi @istvan, In our November release, we updated our Unity Magic Leap XR Plugin dependency to 7.0.0-pre.1. Unity also added enforcement that the camera's near clipping plane will be at least the amount specified by MagicLeap Graphics API, which by default is 0.37m. Please see our Comfort and Content Placement guide for more information. If your near clipping plane is set lower than the default, you will experience issues.
Please let me know if I understood your question correctly and if the above helps.
We are changing the near clip minimum enforcement logic in a future release. Currently targeting January. Developers have been able to change the near clipping behavior in the past due to a bug in the one of the packages. In the future, the minimum clipping plane enforcement will recommended and not mandatory.
Is this feature public yet, I can change the setting in Unity editor by commenting out lines in the MagicLeapML.cs script. If I build the clipping seems to revert back. Has the update been released yet? Thanks