Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

251
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda