using UnityEngine.XR.OpenXR.NativeTypes; namespace UnityEngine.XR.OpenXR.Features.MagicLeapSupport { using MagicLeapSystemInfoNativeTypes; [System.Obsolete("Type has been relocated to new namespace. Update reference to MagicLeap.OpenXR.Features.MagicLeapSystemInfoNativeFunctions")] internal unsafe class MagicLeapSystemInfoNativeFunctions : MagicLeapNativeFunctionsBase { internal delegate* unmanaged [Cdecl] XrGetSystem; internal delegate* unmanaged [Cdecl] XrGetSystemProperties; protected override void LocateNativeFunctions() { XrGetSystem = (delegate* unmanaged[Cdecl])LocateNativeFunction("xrGetSystem"); XrGetSystemProperties = (delegate* unmanaged[Cdecl])LocateNativeFunction("xrGetSystemProperties"); } internal XrResult GetSystemId(out ulong systemId, XrSystemFormFactor formFactor = XrSystemFormFactor.HeadMountedDisplay) { systemId = 0; var systemGetInfo = new XrSystemGetInfo { Type = XrSystemInfoTypes.XrTypeSystemGetInfo, Next = default, FormFactor = formFactor }; return XrGetSystem(XrInstance, in systemGetInfo, out systemId); } } }