private void ClearPlacementObjectAnchors()
 {
     foreach (var anchor in gameObject.GetComponents <UnityEngine.XR.WSA.WorldAnchor>())
     {
         DebugDisplay(string.Format("\nDeleting GameObject Anchor: {0} - {1}", anchor.name, anchor.gameObject.name));
         DestroyImmediate(anchor);
         anchorStore.Clear();
     }
 }
    private void AnchorStoreReady(UnityEngine.XR.WSA.Persistence.WorldAnchorStore store)
    {
        Debug.Log("WorldAnchorStore READY");
        anchorStore  = store;
        CurrentState = AnchorManagementState.AnchorStoreReady;

        if (!KeepRoomAlive)
        {
            anchorStore.Clear();
        }
    }
    private void ClearAnchors()
    {
        if (store != null)
        {
            store.Clear();
        }

        Debug.Log("Cleared WorldAnchorStore");

        m_PointOfReference = null;

        if (StatusText.Instance)
        {
            StatusText.Instance.SetText("Anchors Cleared");
        }
    }