Skip to main content
Version: 5.x

Portrait Particles

To make it easier for you to mix-and-match our different examples, this template has been converted to an importable asset in the Asset Library with the name Particles Controller.

The Portrait Particles Template allows you to create a fun and simple face Lens for a party or event. The template features multiple particle presets that you can add behind the user. For further customization, you can also use your own particles, add a custom message, add a header and footer images, as well as add post effect to add a color filter to your Lens.

Tutorial

Guide

The Portrait Particles Controller

To get started, select the PortraitParticlesController [EDIT_ME] in the Scene Hierarchy panel. You can adjust its settings in the Inspector panel to customize your Lens.

Importing Your Own Images

To replace the header or footer with your own image, you can import an image or 2D animation from your computer into the Asset Browser panel. Select the image (PNG, JPG, or GIF), then drag and drop it into the Asset Browser panel.

The Portrait Particles template allows you to configure the images attached to the top and bottom of the screen.

First, select the PortraitParticlesController [EDIT_ME] object in the Scene Hierarchy panel, then in the Inspector panel, you can change its settings. You can enable or disable the header or footer by toggling the checkbox next to their name.

When enabled, you can assign custom textures to the Texture field found below their names in the groups labeled Header Properties and Footer Properties, respectively.

You can change the Blend mode of the image by changing the Blend mode drop down.

You can adjust the opacity of the image by changing the Alpha slider.

Customize the Particles

You can enable or disable the background particles by toggling the Particles checkbox.

To change the style of the particles, change the selection in the Particle dropdown menu.

You can adjust the maximum number of active particles by tweaking the Amount slider.

To edit the particles’ colors, select and edit the color properties named Color A and Color B.

You can adjust the transparency of the particles by tweaking the Alpha slider.

Changing the Text Message

The Portrait Particles template allows you to display a custom message at the top of the screen. You can enable or disable this message by toggling the Text checkbox.

To change the message, edit the property named Text.

You can change the size of the text by adjusting the Size value.

You can adjust the vertical position of the message with the Offset slider.

To edit the text color, select and edit the property named Color, found in the Text Properties section.

You can enable or disable outline on your text by using the checkbox next to Outline. Edit the text outline color by selecting and editing the color property.

You can do the same with the text’s drop shadow.

A custom font can be used for the text as well. You can change the font by changing the Font property to a font you’ve imported into Lens Studio.

Lens Studio comes with several fonts. Take a look at the Text guide for more information.

Changing the Post Effects

The Portrait Particles template also allows you to add color correction to your Lens using a color look up table. You can enable or disable this feature by toggling the Post Effects checkbox.

Lens Studio provides a variety of Color Correction Textures. To import one into your project, in the Asset Browser panel, select + -> Color Correction Texture and choose a texture from the list. Take a look at the Post Effect guide for more information.

To change the color correction texture, change the Texture field in the Post Effect Properties group to one of the color correction textures you imported or added earlier.

Change the color correction intensity by modifying the Alpha slider.

Previewing Your Lens

You’re now ready to preview your Lens. To preview your lens in Snapchat, follow the Pairing to Snapchat guide.

Was this page helpful?
Yes
No

AI-Powered Search