Example #1
0
 public override void Update(XRSessionUpdateParams updateParams)
 {
     if (this.trackingState == TrackingState.Limited && !this.isPaused)
     {
         NativeApi.UnityXRMock_setTrackingState(TrackingState.Tracking);
     }
 }
Example #2
0
 public override void Update(XRSessionUpdateParams updateParams, Configuration configuration)
 {
     NativeApi.UnityARCore_session_update(
         updateParams.screenOrientation,
         updateParams.screenDimensions,
         configuration.descriptor.identifier,
         configuration.features);
 }
 public override void Update(XRSessionUpdateParams updateParams)
 {
     if (this.trackingState == TrackingState.Limited)
     {
         --this.counter;
         if (this.counter <= 0)
         {
             NativeApi.UnityXRMock_setTrackingState(TrackingState.Tracking);
         }
     }
 }
Example #4
0
 /// <summary>
 /// Perform any per-frame update logic here. The session should use the configuration indicated by
 /// <paramref name="configuration.descriptor.identifier"/>, which should be one of the ones returned
 /// by <see cref="GetConfigurationDescriptors(Unity.Collections.Allocator)"/>.
 /// </summary>
 /// <param name="updateParams">Parameters about the current state that may be needed to inform the session.</param>
 /// <param name="configuration">The configuration the session should use.</param>
 public virtual void Update(XRSessionUpdateParams updateParams, Configuration configuration)
 {
 }
Example #5
0
 /// <summary>
 /// Perform any per-frame update logic here.
 /// </summary>
 /// <param name="updateParams">Parameters about the current state that may be needed to inform the session.</param>
 public virtual void Update(XRSessionUpdateParams updateParams)
 {
 }
 public override void Update(XRSessionUpdateParams updateParams)
 {
     NativeApi.UnityARCore_session_update(
         updateParams.screenOrientation,
         updateParams.screenDimensions);
 }
 public override void Update(XRSessionUpdateParams updateParams)
 {
     NativeApi.UnityARKit_session_update();
 }