Unity SDK 1.4 near clip distance

com.unity.xr.magicleap: updated to 7.0.0 but near clipping is forced at 0.37.
Whether the Enforce Near Clip Distance checkbox is OFF or ON, Camera's Clipping Planes will be overwritten to 0.37.


I think this 7.0.0 update itself is pointless because the nearClip in UnityMagicLeap_RenderingTryGetParameter("NearClipDistance", out nearClip); returns 0.37.

        /// <summary>
        /// Getter/internal Setter for the near Clip distance
        /// </summary>
        public static float nearClipDistance
        {
            get
            {
                float nearClip = 0.5f;
                UnityMagicLeap_RenderingTryGetParameter("NearClipDistance", out nearClip);
                return nearClip;
            }
            internal set { UnityMagicLeap_RenderingSetParameter("NearClipDistance", value); }
        }

I can't find any description in the Developer Portal documentation on how to change the near clipping plane, so I don't know how to go about it. Please share how to do this after you have verified that the near clipping plane can be set with the current update.

1 Like