/// <summary> /// Deletes the anchor. /// </summary> /// <param name="om">The om.</param> public void DeleteAnchor(ObjectMarker om) { string markerName = om.markerName; WorldAnchor wa = om.GetComponent <WorldAnchor>(); if (wa) { DestroyImmediate(om.GetComponent <WorldAnchor>()); } DebugManager.Instance.PrintToInfoLog("Anchor " + markerName + " deleted: " + (store != null ? store.Delete(markerName).ToString() : "No store.") + ":: " + wa); }
/// <summary> /// Determines whether the specified marker is anchored. /// </summary> /// <param name="om">The om.</param> /// <returns> /// <c>true</c> if the specified om is anchored; otherwise, <c>false</c>. /// </returns> public bool IsAnchor(ObjectMarker om) { return(om.GetComponent <WorldAnchor>() != null); }