How do I run a code when a specific camera is activated

How do I run a code when a specific camera is activated

There is no block to determine what the current main camera is.

However, if you create a variable from the beginning and save the variable value before changing the main camera, you will be able to find out what the current main camera is by checking the variable value and run the desired code.

So you need a condition block for the variables, not a condition block for the main camera.

Could you please send me a picture of this? Thanks in advance.