Hi all,
I’m relatively new to unity and am using javascript. I have wrote some code to switch cameras on the click of a button, (namely from a third person controller to a first person zoom camera), however I don’t know how to assign a camera object to a variable.
Here’s some info. My third person camera will be called Camera1, my first person camera will be called Camera2. I have declared these two variables at the top as Camera variables, it’s just applying the objects directly to the variable that I am having trouble with.
Any help will be greatly appreciated.