Assets/Scripts/ImportExportAnchorManager.cs
/// <summary>
/// Called when anchor download operations complete.
/// </summary>
Called when anchor download operations complete.
Called when anchor download operations complete .
private void RoomManagerCallbacks_AnchorsDownloaded(bool successful, AnchorDownloadRequest request, XString failureReason)
    {
        if (successful)
        {
            int datasize = request.GetDataSize();
            Debug.Log(datasize + " bytes ");
            rawAnchorData = new byte[datasize];
            request.GetData(rawAnchorData, datasize);
            CurrentState = ImportExportState.DataReady;
        }
        else
        {
            Debug.Log("Anchor DL failed " + failureReason);
            MakeAnchorDataRequest();
        }
    }
private void RoomManagerCallbacks_AnchorsDownloaded ( bool successful , AnchorDownloadRequest request , XString failureReason ) { if ( successful ) { int datasize = request . GetDataSize ( ) ; Debug . Log ( datasize + " " ) ; rawAnchorData = new byte [ datasize ] ; request . GetData ( rawAnchorData , datasize ) ; CurrentState = ImportExportState . DataReady ; } else { Debug . Log ( " " + failureReason ) ; MakeAnchorDataRequest ( ) ; } }
Called when anchor download operations complete.
Called when anchor download operations complete .
// If we downloaded anchor data successfully we should import the data. // If we failed, we can ask for the data again.
successful
bool
request
AnchorDownloadRequest
failureReason
XString