Assets/Scripts/ImportExportAnchorManager.cs
/// <summary>
/// Kicks off the process of creating the shared space.
/// </summary>
Kicks off the process of creating the shared space.
Kicks off the process of creating the shared space .
void StartAnchorProcess()
    {
        int anchorCount = currentRoom.GetAnchorCount();
        Debug.Log(anchorCount + " anchors");
        if (anchorCount > 0)
        {
            XString storedAnchorString = currentRoom.GetAnchorName(0);
            string storedAnchorName = storedAnchorString.GetString();
            if (AttachToCachedAnchor(storedAnchorName) == false)
            {
                Debug.Log("Starting room download");
                MakeAnchorDataRequest();
            }
        }
    }
void StartAnchorProcess ( ) { int anchorCount = currentRoom . GetAnchorCount ( ) ; Debug . Log ( anchorCount + " " ) ; if ( anchorCount > 0 ) { XString storedAnchorString = currentRoom . GetAnchorName ( 0 ) ; string storedAnchorName = storedAnchorString . GetString ( ) ; if ( AttachToCachedAnchor ( storedAnchorName ) == false ) { Debug . Log ( " " ) ; MakeAnchorDataRequest ( ) ; } } }
Kicks off the process of creating the shared space.
Kicks off the process of creating the shared space .
// First, are there any anchors in this room? // If there are anchors, we should attach to the first one. // Extract the name of the anchor. // Attempt to attach to the anchor in our local anchor store. // If we cannot find the anchor by name, we will need the full data blob.