Everything you need to know to create an interactive augmented reality experience.
You can use 2D textures to create animations. To do this, add textures to your project as either:
A texture atlas will create the most efficient, best quality effect. Sequences create the least.
If you're importing a sequence, you'll need to name the files accordingly. For example: name.frameNumber.fileExtension.
Like any other texture, you'll need to apply them to an object in the scene - like a rectangle - for them to render.
Build an effect using 2D texture animation with this tutorial.
Click + in the Assets panel, and select Import From Computer....
To import a sequence, check the box next to Sequence.
To import a sprite sheet or texture atlas, change Import as: to Sprite Sheet.
If there's no JSON file in your folder, you'll need to add the data manually. Specify how many rows, columns and frames are in the sprite sheet:
You'll see both an animation and a texture in the Assets panel:
You can create additional animations, and apply the same textures to them. Just select Create New Animation:
And apply the texture to it in the Inspector panel.
Select the animation in the Assets panel, and make changes to it in the Inspector panel.
The textures you've applied to the animation.
How many frames are in the sequence.
Adjust the frames per second, to either speed up or slow down the animation.
Check this box to loop the animation continually while the effect is being used.
Check this box to start the animations randomly after the effect has been opened.
Create a patch to represent this frame. Connect this to other patches to create an effect with logic or interactivity.
Create a series of patches to add interactivity to your project, involving the animation
The object the animation is applied to.
Find inspiration, see examples, get support, and share your work with a network of creators.Join Community