The Body template lets you create a Lens that adds images to an upper body found in the camera. The detection for body works at far distances. Great for experiences that interact with people in the rear camera. That said, body tracking also works on an upper body close to the camera like in a front camera selfie experience. Body tracking allows you to attach content to the center of the body and the left and right shoulders.
Switch Preview Video
When working with the Body Template, you'll want to switch the preview video to one with a Body. In the
Preview panel, press the
Image / Video Mode button. Then, in the drop down at the top of the
Preview panel, select the
Body preview video. You should now see the template working with content applied to the upper body and shoulders. You can also switch to Webcam in the
Preview panel and see the content attached to your own upper body.
For the Body 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 Body Tracking Controller
BodyTrackingControler [EDIT_ME] object selected in the
Objects panel, we'll configure its settings in the
Inspector panel. The Body template allows you to configure the image attached to the Right Shoulder, Left Shoulder and Center of the upper body. All are tuned in the same way. When tuning Left Shoulder for example, I can enable or disable the feature with the
Left Shoulder checkbox. When enabled, I can assign my custom texture that I imported into my
Resources panel to the
Left Shoulder texture field. Finally, I can adjust the
Alpha of the feature with the corresponding sliders.
Adding Body Tracking Outside of Template
While the Body template gives you a simple way to add 2D images and animation to the tracked points, you can also always add Body tracking outside of the template. To do this, select
Add New -> Object Tracking -> Body
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