Assets/Scripts/ImportExportAnchorManager.cs
/// <summary>
/// Starts establishing a new anchor.
/// </summary>
Starts establishing a new anchor.
Starts establishing a new anchor .
void CreateAnchorLocally()
    {
        WorldAnchor anchor = GetComponent<WorldAnchor>();
        if (anchor == null)
        {
            anchor = gameObject.AddComponent<WorldAnchor>();
        }
        if (anchor.isLocated)
        {
            CurrentState = ImportExportState.ReadyToExportInitialAnchor;
        }
        else
        {
            anchor.OnTrackingChanged += Anchor_OnTrackingChanged_InitialAnchor;
        }
    }
void CreateAnchorLocally ( ) { WorldAnchor anchor = GetComponent < WorldAnchor > ( ) ; if ( anchor == null ) { anchor = gameObject . AddComponent < WorldAnchor > ( ) ; } if ( anchor . isLocated ) { CurrentState = ImportExportState . ReadyToExportInitialAnchor ; } else { anchor . OnTrackingChanged += Anchor_OnTrackingChanged_InitialAnchor ; } }
Starts establishing a new anchor.
Starts establishing a new anchor .