Camera Reset Script

Hey everyone, I was wondering on how to make a camera go back to its original position when you click a button (script will be stored on the button).

I tried using vector3 but I just couldn’t get it to work with the button, any ideas?


Top of my head answer would be to store the original position and rotation and assign them when button is clicked
var startPos:GameObject;
var startRot:GameObject;




function Reset(){



Should work something like that, I default to JS so if you need it in C# it should take very much to figure out. Let me know if it helps!