Make the "trigger" object react to the "Camera" object?

The fact is that I’m trying to make underwater sounds through the “set sound mix class override”, but I don’t understand how to make the trigger activate when the camera enters it. I didn’t find any similar topics.(The collision settings don’t help, although maybe I did something wrong)

you can add a box collider component and attach to camera. Use the collider as trigger. camera don’t generates overlaps but you can always attach components to it

Hey there @PSNX_OFF1C1AL! Welcome back to the community!

To add to @eldany.uy’s response, I’d recommend you set the collision to the very lens of the camera (because the viewport is actually there) as well as make sure the camera’s collisions are set to generate overlaps so you can iterate on the information from the hits.

Let us know if it helps!

1 Like