You can create effects that are triggered when the camera is pointed at an image in the real world, for example when someone points the camera at a poster for a movie.
To add target AR to an effect, you'll:
Use this sample content to try out target tracking yourself. In the finished effect, the target texture is an image of a slice of pizza - it's included in the sample content folder. Pointing the camera at this image will make a 3D slice of pizza appear.
Start by inserting a plane tracker:
In the Inspector panel, you'll see the plane tracker's properties. To add a target texture, go to Targets:
You should see the texture appear in the Viewport.
All you need to do now is add the effect you want to trigger when the camera is pointed at the image in the real world.
To do this, simply add the objects, effects or animations you want to appear as a child of the plane tracker. Instead of appearing when a horizontal surface is detected, they'll appear when the target is detected.
If you've downloaded the sample content:
Target tracking works best with images that have a lot of visual features. Images that work well have:
When you're tracking an image, try to make sure there's sufficient light or that the image isn't displayed on a screen (example: computer, television)