Enter Username [Solved]


#1

Is it possible to design a solution which prompts the learner to enter his/her name? And then we use the name throughout the AR experience to make it more personalized?


#2

In studio you can use Z.Prompt it gets a keyboard.

https://docs.zap.works/studio/scripting/examples/getting-keyboard-input/

Steve


#3

Thank you Steve. But I want to know where does the name get saved and how do I use it throughout the experience? Is it a variable?


#4

In the doc there is a demo code

myprompt.on("confirm", function(theirEntry : string) {
  console.log("They entered: " + theirEntry);
});

The data is saved in the theirEntry variable. Witch you can reuse in your experience.

Steve