Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

369
Visualizações
Azure Spatial Anchor - how to get sufficient environment data?

I'm trying to build an AR Android application using Unity 2019.4.19f1 and Azure Spatial Anchor in order to save the anchors to the cloud.

I'm using the SpatialAnchorManager class given in the demo. Once the session is created and started, I Try saving a Prefab to the cloud with the following Method but the CloudManager.SessionStatus.RecommendedForCreateProgress never gets above 0.

protected virtual async Task SaveCurrentObjectAnchorToCloudAsync(GameObject spawnedObject)
    {
        CloudNativeAnchor cna = spawnedObject.GetComponent<CloudNativeAnchor>();

        // If the cloud portion of the anchor hasn't been created yet, create it
        if (cna.CloudAnchor == null) { cna.NativeToCloud(); }

        // Get the cloud portion of the anchor
        CloudSpatialAnchor cloudAnchor = cna.CloudAnchor;

        while (!CloudManager.IsReadyForCreate)
        {
            await Task.Delay(330);
            float createProgress = CloudManager.SessionStatus.RecommendedForCreateProgress;
            feedBack.text = $"Move your device to capture more environment data: {createProgress}";
        }
        bool success = false;

        feedBack.text = "Saving...";

        try
        {
            await CloudManager.CreateAnchorAsync(cloudAnchor);
            var currentCloudAnchor = cloudAnchor;
            success = currentCloudAnchor != null;

            if (success && !isErrorActive)
            {
                await OnSaveCloudAnchorSuccessfulAsync();
            }
            else
            {
                OnSaveCloudAnchorFailed(new Exception("Failed to save, but no exception was thrown."));
            }
        }
        catch (Exception ex)
        {
            OnSaveCloudAnchorFailed(ex);
        }
    }
over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda