public bool SetActiveMarkerLibrary(IMRMarkerLibrary activeLibrary) { var activeMarsLibrary = (MarsMarkerLibrary)activeLibrary; if (activeMarsLibrary == null) { return(false); } if (!MarkerProviderSettings.instance.TryFind(activeMarsLibrary, out var xrReferenceLibrary)) { Debug.LogWarning("Could not find XR Reference Library for " + activeMarsLibrary); return(false); } // Check for image manager after trying to find library so that warning happens in play mode if (m_ARTrackedImageManager == null) { return(false); } m_ARTrackedImageManager.referenceLibrary = xrReferenceLibrary; // When we start with a null reference library, our manager could be disabled if (xrReferenceLibrary != null && m_ARTrackedImageManager.enabled == false) { m_ARTrackedImageManager.enabled = true; } return(true); }
public bool SetActiveMarkerLibrary(IMRMarkerLibrary activeLibrary) { return(true); }
public static bool SetActiveMarkerLibrary(this IUsesMarkerTracking obj, IMRMarkerLibrary markerLibrary) { return(obj.provider.SetActiveMarkerLibrary(markerLibrary)); }