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

252
Visualizações
Is there a way of using Spark AR Studio's "NativeUI.enterTextEditMode" to enter text for multiple objects at once?

I'm trying to simultaneously set the text on multiple text objects within dynamically created blocks.

I thought I could do it using NativeUI.enterTextEditMode, but it doesn't seem to work as expected.

NativeUI.enterTextEditMode seems to work when I have a single, static text object that isn't within a dynamic block, so my idea was to do that, then read what the static text object contains and pass this on to the dynamic blocks via text ports.

But when I read the value of the non-dynamic text, with

    // first test: call the UI
    await NativeUI.enterTextEditMode(SceneObjectName.EDITABLE_TEXT); // call text edit UI
    
    // second test: set it directly
    await NativeUI.setText(SceneObjectName.EDITABLE_TEXT,'this does not work either'); // try to set text directly
    
    // both of those tests appear correctly in the viewport, but not in the properties window

    // now let's read it out

    let textValue = await textObject.text.pinLastValue();  // text is a stringSignal, lastValue is ConstStringSignal
    Diagnostics.log("textValue: " + textValue);  // seems to still read the original, unedited value, from before the first test, whatever you do

I just get the original text that was there before the user entered the text :-(

Is there a way of doing this? Or is it disabled for some kind of security reason? And if so, is there some kind of workaround (other than building my own keyboard picker!!!)? We're actually only using this in-house via Spark AR Player on Android, so it doesn't need to pass any external app store guidelines.

about 4 years ago · Juan Pablo Isaza
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