There may be differences between your version of Spark AR Studio and this tutorial because the product is currently in beta and we update it regularly.
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.
Download the sample content to follow along. If you open the unfinished effect you’ll see the 2D frame we built in a previous tutorial.
Like the rectangles that are already in the scene, you're going to add the text as a child of a canvas. This will make sure the text scales with the size of the device screen.
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:
Then:
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.
Next change:
Then:
Congratulations! You’ve now added dynamic text to an effect!
Find inspiration, see examples, get support, and share your work with a network of creators.
Join CommunityFind inspiration, see examples, get support, and share your work with a network of creators.
Join Community