In this tutorial you'll add dynamic text, to personalize a 2D frame by showing the real-life location of the person using the effect, and the date.
We have precise positions for the text in mind for this tutorial, so we’re going to use the Inspector to position the text. You can experiment with positioning text in the Viewport too.
To add the text:
You'll see an object called 2dText0 listed in the Scene panel. Do this one more time, so you have 2 text objects in the Scene panel as children of canvas1.
To help you keep track, change the name of the first text object to date, and the second to place.
Select date in the Scene panel. Over in the Inspector you'll see a text box under Typography. You can edit the text here. For this effect though, we're going to use the Dynamic Text option.
To add dynamic text, first delete the text that's already there. Then:
Next, change the Font. Spark AR Studio comes with several fonts already installed. For this effect:
Now let’s position the text in the top left of the canvas. Start by editing the text’s position. Change it to:
Now for the second text object. Again:
You should see the text in the scene change.
Current City is represented in the scene as London. You might be in another location, but Spark AR Studio doesn't have access to that data through your computer, so it uses London by default. You can preview and test the dynamic text using the Spark AR Player app.
Congratulations! You’ve now added dynamic text to an effect!