private void RunningChanged(ObjectAnchorsServiceStatus e) { switch (e) { case ObjectAnchorsServiceStatus.Paused: _queryQueue = new ConcurrentQueue <Tuple <ObjectAnchorsBoundingBox, IEnumerable <ObjectQuery> > >(); break; case ObjectAnchorsServiceStatus.Running: if (ActiveDetectionStrategy == DetectionStrategy.Auto) { RefillGlobalQueryQueue(); } break; } }
/// The Azure Obeject Anchors callbacks arrive off of the Unity thread, so we queue them to run on the unity thread. private void _objectAnchorsService_RunningChanged(object sender, ObjectAnchorsServiceStatus e) { UpdateQueue.Enqueue(() => { RunningChanged(e); }); }
private void ObjectAnchorsService_RunningChanged(object sender, ObjectAnchorsServiceStatus status) { TextLogger.Log($"Object search {status}"); }