Skip to main content
Version: 5.x
Supported on
Snapchat

Baseball Cap

The Baseball Cap Controller asset allows users create a customizable baseball cap.  The asset comes with a configurable 3D baseball cap which you can recolor and decorate with any image you like. This guide covers how to customize the baseball cap as well as how to import your own custom logo.

Find the Baseball Cap Controller asset in the Asset Library and import it into your project. Click here to learn more about how to use assets in the Asset Library.

Guide

Baseball Cap Controller Asset

Once you import the asset from Asset Library, you can find the package in the Asset Browser.

Follow the instructions and create a new Head Binding in the Scene Hierarchy.

Drag the prefab Baseball_Cap_Controller__PUT_UNDER_HEAD_BINDING into Scene Hierarchy under the Head Binding to create a new Scene Object.

You can right-click and select Unpack for Editing from the drop-down menu to unpack all assets stored in the bundle. Click here to learn more about Asset Packages. Once you unpack the package, you can then edit its content.

Customizing The Baseball Cap

To customize the baseball cap, select the Baseball Cap Controller [EDIT_ME] object in the Scene Hierarchy panel and adjust its settings in the Inspector panel. The sections below walk through each of the customizable settings.

You can replace the logo on the baseball cap by changing the Logo Texture property to the texture of your choosing.

To bring in your own image as a logo, select + -> Import Asset in the Asset Browser panel. Alternatively, you can drag and drop any image from your computer to the Asset Browser panel.

You can adjust the logo size using the Logo Size slider.

You can adjust the logo position using the Logo Offset X and Logo Offset Y sliders.

You can also adjust the logo's appearance by changing the Logo Blend Mode dropdown. Available blend modes are Normal, Screen, and Multiply.

Coloring the Baseball Cap

You can edit the baseball cap's color in the Inspector panel by changing the Primary Cap Color and Secondary Cap Color properties.

Adjusting the Baseball Cap

You can reshape the look of the baseball cap by adjusting the Brim Curve slider. This property adjusts the curve of the cap's brim between flat and curved.

You can also change the tilt and swivel of the cap by adjusting the Hat Tilt and Hat Swivel sliders.

Previewing Your Lens

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

Was this page helpful?
Yes
No