Assets/Scripts/ImportExportAnchorManager.cs
/// <summary>
/// Called when a remote anchor has been deserialized.
/// </summary>
/// <param name="status"></param>
/// <param name="wat"></param>
Called when a remote anchor has been deserialized.
Called when a remote anchor has been deserialized .
void ImportComplete(SerializationCompletionReason status, WorldAnchorTransferBatch wat)
    {
        if (status == SerializationCompletionReason.Succeeded && wat.GetAllIds().Length > 0)
        {
            Debug.Log("Import complete");
            string first = wat.GetAllIds()[0];
            Debug.Log("Anchor name: " + first);
            WorldAnchor anchor = wat.LockObject(first, gameObject);
            anchorStore.Save(first, anchor);
            CurrentState = ImportExportState.Ready;
        }
        else
        {
            Debug.Log("Import fail");
            CurrentState = ImportExportState.DataReady;
        }
    }
void ImportComplete ( SerializationCompletionReason status , WorldAnchorTransferBatch wat ) { if ( status == SerializationCompletionReason . Succeeded && wat . GetAllIds ( ) . Length > 0 ) { Debug . Log ( " " ) ; string first = wat . GetAllIds ( ) [ 0 ] ; Debug . Log ( " " + first ) ; WorldAnchor anchor = wat . LockObject ( first , gameObject ) ; anchorStore . Save ( first , anchor ) ; CurrentState = ImportExportState . Ready ; } else { Debug . Log ( " " ) ; CurrentState = ImportExportState . DataReady ; } }
Called when a remote anchor has been deserialized.
Called when a remote anchor has been deserialized .
status
SerializationCompletionReason
None
wat
WorldAnchorTransferBatch
None