Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

254
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!