Assets/Scripts/ImportExportAnchorManager.cs
/// <summary>
/// Callback to trigger when an anchor has been 'found'.
/// </summary>
Callback to trigger when an anchor has been 'found'.
Callback to trigger when an anchor has been ' found ' .
private void Anchor_OnTrackingChanged_InitialAnchor(WorldAnchor self, bool located)
    {
        if (located)
        {
            Debug.Log("Found anchor, ready to export");
            CurrentState = ImportExportState.ReadyToExportInitialAnchor;
        }
        else
        {
            Debug.Log("Failed to locate local anchor (super bad!)");
            CurrentState = ImportExportState.Failed;
        }
        self.OnTrackingChanged -= Anchor_OnTrackingChanged_InitialAnchor;
    }
private void Anchor_OnTrackingChanged_InitialAnchor ( WorldAnchor self , bool located ) { if ( located ) { Debug . Log ( " " ) ; CurrentState = ImportExportState . ReadyToExportInitialAnchor ; } else { Debug . Log ( " " ) ; CurrentState = ImportExportState . Failed ; } self . OnTrackingChanged -= Anchor_OnTrackingChanged_InitialAnchor ; }
Callback to trigger when an anchor has been 'found'.
Callback to trigger when an anchor has been ' found ' .
self
WorldAnchor
located
bool