/// <summary> /// Start tracking markers. Marker tracking is enabled on initialization, so this is only necessary after /// calling StopTrackingMarkers. /// </summary> public static void StartTrackingMarkers(this IUsesMarkerTracking obj) { obj.provider.StartTrackingMarkers(); }
/// <summary> /// Unsubscribe from the markerRemoved event, which is called when a tracked marker is removed (lost) /// </summary> /// <param name="markerRemoved">The delegate to unsubscribe</param> public static void UnsubscribeMarkerRemoved(this IUsesMarkerTracking obj, Action <MRMarker> markerRemoved) { obj.provider.markerRemoved -= markerRemoved; }
/// <summary> /// Get the currently tracked markers /// </summary> /// <param name="markers">A list of MRMarker objects to which the currently tracked markers will be added</param> public static void GetMarkers(this IUsesMarkerTracking obj, List <MRMarker> markers) { obj.provider.GetMarkers(markers); }
/// <summary> /// Subscribe to the markerUpdated event, which is called when a tracked marker has updated data /// </summary> /// <param name="markerUpdated">The delegate to subscribe</param> public static void SubscribeMarkerUpdated(this IUsesMarkerTracking obj, Action <MRMarker> markerUpdated) { obj.provider.markerUpdated += markerUpdated; }
public static bool SetActiveMarkerLibrary(this IUsesMarkerTracking obj, IMRMarkerLibrary markerLibrary) { return(obj.provider.SetActiveMarkerLibrary(markerLibrary)); }