The Pet Template lets you create Lenses that add content to Cat or Dog faces. The template allows you to attach images or animations to a Pet’s Left Eye, Right Eye, Nose and Center of the head.
Switch Preview Video
When working with the Pet Template, you'll want to switch the preview video to one with a cat or dog. In the
Preview panel, press the
Image / Video Mode button. Then, in the drop down at the top of the
Preview panel, select the
Cat and Dog,
Dog preview video. You should now see the template working with content applied to the Cat or Dog’s face.
For the Pet template, we should first import a 2D texture or animation into the
Resources panel. To do this, drag and drop a
GIF into the
Resources panel from your computer.
Configure Pet Tracking Controller
PetTrackingController [EDIT_ME] object selected in the
Objects panel, we'll configure its settings in the
Inspector panel. First, let's select the Tracking Type we'd like to use from the
Tracking Type drop down. The
Cat tracking type will only apply to cats. The
Dog tracking type will only apply to dogs. The
Cat or Dog tracking type will apply to either a Cat or a Dog found in the camera.
If you're not creating an experience that ONLY works on Cats or ONLY works on Dogs, we recommend using the
Cat or Dog tracking type
The Pet template allows you to configure the image attached to the Right Eye, Left Eye, Nose or Center of the head. All are tuned in the same way. When tuning Right Eye for example, I can enable or disable the feature with the
Right Eye Tracking checkbox. When enabled, I can assign my custom texture that I imported into my
Resources panel to the
Right Eye field. Finally, I can adjust the
Alpha of the feature with the corresponding sliders.
Adding Pet Tracking Outside of Template
While the Pet template gives you a simple way to add 2D images and animation to the tracked points, you can also always add Cat and Dog tracking outside of the template. To do this, select
+ -> Object Tracking -> Cats and
Dogs Tracking from the
Objects panel. You can then edit the position, scale and rotation of the added element in the 2D scene.
Object Tracking and 3D Objects
Submitting Your Lens
You’re now ready to submit your Lens! Follow the guides below:
Still Looking for help?Visit Support