Example #1
0
 private void UpdateTrackableProperties(NRTrackableBehaviour[] trackables)
 {
     for (int i = 0; i < trackables.Length; i++)
     {
         NRTrackableBehaviour trackableBehaviour = trackables[i];
         NRTrackableAccessor  trackableAccessor  = NRAccessorFactory.Create(trackableBehaviour);
         if (trackableAccessor != null)
         {
             trackableAccessor.ApplyDataProperties();
         }
     }
 }
Example #2
0
 private void UpdateTrackableAppearance(NRTrackableBehaviour[] trackables)
 {
     if (!Application.isPlaying)
     {
         for (int i = 0; i < trackables.Length; i++)
         {
             NRTrackableBehaviour trackableBehaviour = trackables[i];
             NRTrackableAccessor  trackableAccessor  = NRAccessorFactory.Create(trackableBehaviour);
             if (trackableAccessor != null)
             {
                 trackableAccessor.ApplyDataAppearance();
             }
         }
     }
 }