Пример #1
0
        public bool CreateSIMController()
        {
            NativeResult result = NativeApi.NRSIMControllerCreate(ref m_ControllerHandle);

            return(result == NativeResult.Success);
        }
Пример #2
0
        public bool SetControllerSubmit()
        {
            NativeResult result = NativeApi.NRSIMControllerSubmit(m_ControllerHandle);

            return(result == NativeResult.Success);
        }
Пример #3
0
        public bool CreateSIMTracking()
        {
            NativeResult result = NativeApi.NRSIMTrackingCreate(ref m_TrackingHandle);

            return(result == NativeResult.Success);
        }
Пример #4
0
 public float[] GetPolygonData(UInt64 trackable_handle)
 {
     NativeApi.NRTrackablePlaneGetPolygon(m_NativeInterface.TrackingHandle, trackable_handle, (m_TmpPointsHandle.AddrOfPinnedObject()));
     return(m_Points);
 }
        public void Create()
        {
            NativeResult result = NativeApi.NRGlassesControlCreate(ref m_GlassesControllerHandle);

            NativeErrorListener.Check(result, this, "Create");
        }
Пример #6
0
 public override void Pause()
 {
     NativeApi.UnityARCore_session_pause();
 }
Пример #7
0
 public override void Destroy()
 {
     DeleteTexture();
     NativeApi.UnityARCore_session_destroy();
 }
Пример #8
0
 public void DestroyTrackableList(UInt64 trackable_list_handle)
 {
     NativeApi.NRTrackableListDestroy(m_NativeInterface.TrackingHandle, trackable_list_handle);
 }
Пример #9
0
 /// <summary>
 /// Stop the provider.
 /// </summary>
 public override void Stop() => NativeApi.UnityARCore_OcclusionProvider_Stop();
        public void Resume()
        {
            NativeResult result = NativeApi.NRGlassesControlResume(m_GlassesControllerHandle);

            NativeErrorListener.Check(result, this, "Resume", true);
        }
        public void Stop()
        {
            NativeResult result = NativeApi.NRGlassesControlStop(m_GlassesControllerHandle);

            NativeErrorListener.Check(result, this, "Stop");
        }
        public void RegistGlassesEventCallBack(NRGlassesControlNotifyQuitAppCallback callback)
        {
            NativeResult result = NativeApi.NRGlassesControlSetNotifyQuitAppCallback(m_GlassesControllerHandle, callback, 0);

            NativeErrorListener.Check(result, this, "RegistGlassesEventCallBack");
        }
        public void RegisGlassesPlugOutCallBack(NRGlassesControlPlugOffCallback callback, ulong userdata)
        {
            NativeResult result = NativeApi.NRGlassesControlSetGlassesDisconnectedCallback(m_GlassesControllerHandle, callback, userdata);

            NativeErrorListener.Check(result, this, "RegisGlassesPlugOutCallBack");
        }
        public void RegisGlassesWearCallBack(NRGlassesControlWearCallback callback, ulong userdata)
        {
            NativeResult result = NativeApi.NRGlassesControlSetGlassesWearingCallback(m_GlassesControllerHandle, callback, userdata);

            NativeErrorListener.Check(result, this, "RegisGlassesWearCallBack");
        }
Пример #15
0
        public bool DestorySIMController()
        {
            NativeResult result = NativeApi.NRSIMControllerDestroyAll();

            return(result == NativeResult.Success);
        }
Пример #16
0
 /// <summary>
 /// Destroy the provider.
 /// </summary>
 public override void Destroy() => NativeApi.UnityARCore_OcclusionProvider_Destruct();
Пример #17
0
 public override void Resume()
 {
     CreateTexture();
     NativeApi.UnityARCore_session_resume();
 }
Пример #18
0
        public bool SetControllerTimestamp(UInt64 timestamp)
        {
            NativeResult result = NativeApi.NRSIMControllerSetTimestamp(m_ControllerHandle, timestamp);

            return(result == NativeResult.Success);
        }
Пример #19
0
 public override void Update(XRSessionUpdateParams updateParams)
 {
     NativeApi.UnityARCore_session_update(
         updateParams.screenOrientation,
         updateParams.screenDimensions);
 }
Пример #20
0
        public bool SetControllerButtonState(Int32 buttonState)
        {
            NativeResult result = NativeApi.NRSIMControllerSetButtonState(m_ControllerHandle, buttonState);

            return(result == NativeResult.Success);
        }
Пример #21
0
 public override void OnApplicationResume()
 {
     NativeApi.UnityARCore_session_onApplicationResume();
 }
Пример #22
0
        public bool SetControllerIsTouching(bool isTouching)
        {
            NativeResult result = NativeApi.NRSIMControllerSetIsTouching(m_ControllerHandle, isTouching);

            return(result == NativeResult.Success);
        }
Пример #23
0
        public bool DestroyImage(UInt64 imageHandle)
        {
            var result = NativeApi.NRRGBCameraImageDestroy(m_NativeCameraHandle, imageHandle);

            return(result == NativeResult.Success);
        }
        public void Destroy()
        {
            NativeResult result = NativeApi.NRGlassesControlDestroy(m_GlassesControllerHandle);

            NativeErrorListener.Check(result, this, "Destroy");
        }