Sometimes it’s tricky to know if your player will be visible when entering a camera trigger.

In order to simplify that process you can make the trigger to roughly match the camera FOV.

First, use an instance of FixedCameraWithShape prefab for your camera. This prefab uses a Shape (a customizable polygon) to design the trigger area.

Next, add a MatchShapeToCamera component to the trigger object. Assign the camera object and tweak the length parameter.

This shape is a 2d object so it doesn’t match the frustum perfectly, it should however help you to define better areas.

Finally, if you want to tweak manually the shape, remove the MatchShapeToCamera component to ensure it doesn’t reset it to the camera FOV.

image.png