Overview
Lens Studio includes a number of templates to help you get started making Snapchat Lenses. Templates are a great way to learn about new features, as well as see examples on how to use them.
Use the Table of Contents on the right to jump to different sections quickly.
Featured Templateโ
Get started on a variety of capabilities through some of our favorite templates.
๐๏ธ Distort
The Distort Template provides a base for creating Face Lenses that stretch, liquify, and duplicate your facial features. The Distort Template allows you to create a compelling Face Lens without importing any additional resources. The template contains a few preconfigured effects which you can edit or delete. This guide covers how to modify the templateโs effects, as well as how to add more.
๐๏ธ Animated Object 2021
The Animated Object template demonstrates an easy way to add and interact with 3D models into the world. The template is a great way to get into Visual Scripting as well as the Interaction component.
๐๏ธ ML World Eraser
With the ML Eraser Custom Component, Lens Developers can build unique AR experiences powered SnapML to alter and remove real world content in real-time. The World Eraser Template combines the power of World Tracking with SnapML's ML Eraser Custom Component to erase objects on screen independently from the camera position.
๐๏ธ Downloadable Landmarkers
Landmarker templates allow you to create unique Lens experiences at selected locations around the world. Similar to Marker Tracking, Landmarker Tracking allows you to track your content to the specified physical location. Take a look at the Landmarker Template Guide for additional information on making a Landmarker Lens.
Getting Startedโ
If this is your first time creating a Lens, check out the templates below which allow you to create compelling Lenses by importing a single 2D image. Check out additional Beginner Templates here.
๐๏ธ Team Celebrate
The Team Celebrate Template allows you to create a sports themed team celebration Lens. This template comes with configurable face paint and confetti which you can easily recolor with your teamโs colors. You can also easily add your teamโs logo to the face or screen.
๐๏ธ Makeup
The Makeup Template allows you to create a Lens with different makeup styles. You can add lip tint and gloss, blush, eyeliner, eyeshadow, mascara, and eyebrow coloring. No external assets are necessary. You can also export the makeup to use in your existing Lens project.
๐๏ธ Image Marker
The Marker Template allows you to specify an image that is recognized and tracked by the Snapchat camera. Unlike the other tracking techniques in the Device Tracking component, marker tracking detects and tracks the features in a specific user defined image. The template shows you how to utilize marker tracking to create a 3D experience tightly tracked to a marker image. It also includes different effects that can be triggered when the marker is recognized, tapped and more.
๐๏ธ Picture Frame
The Picture Frame Template gives you the power to build a Lens with a single 2D image. Import your own custom 2D image and link it to the picture frame. The template then automatically builds a 3D picture frame around your content.
Augment the Worldโ
Lenses can change the way people see the world.
๐๏ธ Cutout
The Cutout Template lets you create a World Lens by importing just a 2D image or animation. A cutout includes movement, scale, rotation, shadow and the ability to always look at the camera. Multiple Cutouts can be added to the Lens allowing you to create a 3D scene with movable 2D objects.
๐๏ธ World Mesh
The World Mesh template allows you to instantiate and occlude virtual objects based on real world surfaces through real-time 3D mesh reconstruction of what your device sees. The template allows you to instantiate objects based on surface types, or based on its orientation.
๐๏ธ Physics
The Physics Template demonstrates how you can use Physics in Lens Studio to dynamically simulate real-world physical effects and define 3D geometry for raycast or collision detection.
๐๏ธ Tween
Animation can make your Lenses more engaging as it can add life and movement to your AR experience. The Tween Template demonstrates multiple scenarios of implementing Tween into your project to add animations directly within Lens Studio. With Tween you can move, scale, rotate, change the color of an object and more through simple drop downs. The template comes with examples of animating 3D objects, orchestrating animations, as well as animating interactable UI elements.
Add Interactivityโ
More than just augmenting the world, Lenses can be made more engaging through interactivity.
๐๏ธ Fullscreen
The Fullscreen Template allows you to create a sequence of fullscreen states triggered by tap or time. A state is defined in the template by specifying which objects are shown and which animations and sounds are played at a given time. The template includes helpers such as a freeze frame effect (with different zoom levels), a tween system, and a way to hide Mesh or Sprite Visuals while recording.
๐๏ธ Behavior
The Behavior Template demonstrates how you can use Behavior script to create an interactive Lens without writing code. It comes with several examples, including how to change an image on tap, start particles based on your facial expression, running Tweens, and even calling your own custom code.
๐๏ธ Visual Scripting
The Visual Scripting Template showcases various ways to use visual scripting to achieve simple and advanced interactions in a Lens.
๐๏ธ Configuration
The Configuration Template utilizes the User Interface helper to create a Lens that can be modified by the Snapchatter on their phone. By allowing the Snapchatter to modify the parameters of their Lens, they can personalize the effects to their liking in real time.
Explore Graphicsโ
Built-in capabilities allow you to surprise and delight users with great visual effects.
๐๏ธ Material Editor
The Material Editor Template includes a number of materials made with the Material Editor that can be easily exported and imported into other templates. The materials used in this template can also be found in the Material Library in the Resources panel. Each material can be modified through the Material Editor, or the Inspector panel.
๐๏ธ VFX Particles
The VFX Template showcases different ways to use VFX Graph.
๐๏ธ 3D Text
The 3D Text Template contains a series of examples for displaying text in 3D, both for face and world Lenses. The template uses the 3D Text component to turn texts dynamically into a 3D object inside the scene.
๐๏ธ VFX Collisions
The VFX Template showcases different ways to use VFX Graph to implement particle collision in VFX Editor. Collision is implemented by introducing new collision subgraphs in VFX editor. You can find their description in VFX Collision Subgraphs guide.
Use Cutting Edge Featuresโ
Take advantage of machine learning, cloud, and shared AR capabilities to take your Lenses to another level.
๐๏ธ Style Transfer
The Style Transfer template allows you to use a Style Transfer model to visually change how the camera feed looks based on another image. The template allows you to choose between always running it in real time, running it on demand, or automatically choosing between the two for the best user experience.
๐๏ธ Speech Recognition
The Speech Recognition template demonstrates how you can use the Speech Recognition to incorporate transcription and keyword detection as well as voice navigation command detection based on basic natural language understanding into the Lenses. The template contains several helpers that you can use to create voice experiences without scripting.
๐๏ธ Scan
The Scan Template contains examples showcasing use cases of the Scan function to detect what's in the camera. The template contains several helpers that you can use to create experiences without scripting. In addition, it provides a simple example to get you started with your first Scan script.
๐๏ธ Connected
Connected Lenses is a Beta experience. You will not be able to use this for Sponsored Lenses.