Пример #1
0
    public void StartResolve()
    {
        // numOfToBeResolved = NUM_OF_ANCHOR;

        _cloudAnchorsMetaManager = GameObject.FindWithTag("CloudAnchorsMetaBolt").GetComponent <CloudAnchorsMetaManagerOld>();
        if (_cloudAnchorsMetaManager == null)
        {
            _arDebugManager.LogError($"There is no Cloud Anchors to be resolve from the session");
            return;
        }
        else
        {
            _arDebugManager.LogInfo(_cloudAnchorsMetaManager.confirmimg());
        }
        // anchorToResolveList = _cloudAnchorsMetaManager.downloadAnchorToResolveList();

        _arDebugManager.LogInfo($"Start Resolve Anchor, numOfToBeResolved = {numOfToBeResolved}");
        for (i = 0; i < NUM_OF_ANCHOR; i++)
        {
            cloudAnchorList[i] = null;
        }
        for (i = 0; i < numOfToBeResolved; i++)
        {
            Resolve(i);
        }
        anchorResolveInProgress = true;
    }
Пример #2
0
    public void StartHostAnchor()
    {
        _cloudAnchorsMetaManager = GameObject.FindWithTag("CloudAnchorsMetaBolt").GetComponent <CloudAnchorsMetaManagerOld>();
        _arDebugManager.LogInfo(_cloudAnchorsMetaManager.confirmimg());

        _arDebugManager.LogInfo($"Start Host Anchor, numOfQueued = {numOfQueued}");
        quality = _arAnchorManager.EstimateFeatureMapQualityForHosting(GetCameraPose());
        for (i = 0; i < numOfQueued; i++)
        {
            anchorToResolveList[i] = null;
        }
        for (i = 0; i < numOfQueued; i++)
        {
            HostAnchor(i);
        }
        numOfToBeResolved      = 0;
        anchorUpdateInProgress = true;
    }