public bool CreateSIMController() { NativeResult result = NativeApi.NRSIMControllerCreate(ref m_ControllerHandle); return(result == NativeResult.Success); }
public bool SetControllerSubmit() { NativeResult result = NativeApi.NRSIMControllerSubmit(m_ControllerHandle); return(result == NativeResult.Success); }
public bool CreateSIMTracking() { NativeResult result = NativeApi.NRSIMTrackingCreate(ref m_TrackingHandle); return(result == NativeResult.Success); }
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"); }
public override void Pause() { NativeApi.UnityARCore_session_pause(); }
public override void Destroy() { DeleteTexture(); NativeApi.UnityARCore_session_destroy(); }
public void DestroyTrackableList(UInt64 trackable_list_handle) { NativeApi.NRTrackableListDestroy(m_NativeInterface.TrackingHandle, trackable_list_handle); }
/// <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"); }
public bool DestorySIMController() { NativeResult result = NativeApi.NRSIMControllerDestroyAll(); return(result == NativeResult.Success); }
/// <summary> /// Destroy the provider. /// </summary> public override void Destroy() => NativeApi.UnityARCore_OcclusionProvider_Destruct();
public override void Resume() { CreateTexture(); NativeApi.UnityARCore_session_resume(); }
public bool SetControllerTimestamp(UInt64 timestamp) { NativeResult result = NativeApi.NRSIMControllerSetTimestamp(m_ControllerHandle, timestamp); return(result == NativeResult.Success); }
public override void Update(XRSessionUpdateParams updateParams) { NativeApi.UnityARCore_session_update( updateParams.screenOrientation, updateParams.screenDimensions); }
public bool SetControllerButtonState(Int32 buttonState) { NativeResult result = NativeApi.NRSIMControllerSetButtonState(m_ControllerHandle, buttonState); return(result == NativeResult.Success); }
public override void OnApplicationResume() { NativeApi.UnityARCore_session_onApplicationResume(); }
public bool SetControllerIsTouching(bool isTouching) { NativeResult result = NativeApi.NRSIMControllerSetIsTouching(m_ControllerHandle, isTouching); return(result == NativeResult.Success); }
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"); }