Change camera

Hi guys could you help me: I have a main camera attacked behind player and another camera attacked to object(the animation are just create) and I want that when press mouse button, the main camera became disable and the second camera enabled but when I let the button of the mouse, the main camera became enabled and the second disable. Who can I create the script? Thanks to all

Hello!

If you want to swap cameras, instead of enabling and disabling them, try modifying the depth value of the cameras. If you’re unsure what it is, you can view the documentation for a detailed explanation. If you have any other questions, feel free to let me know.

Regards,

Miggi124