Need Help with Saving and Recalling Camera Position

I am using the old MaxCamera mouse orbit zoom script.

I need be able to save a camera postion and recall it later.

Would someone please take a look and help me out?

Thanks.

PlayerPrefs is what you’re looking for. :wink:

@FlamingHairball Thanks for the info. But I am having trouble getting the camera to actually respond to the settings. What are you putting in the prefs and how are you recalling it? My cam just stays where it is.
Thanks.

to save camera position on x axis

if(whatever you want to do to save {

PlayerPrefs.SetFloat("Camera Position X", 10.0);
}

to load camera position

function Start () {

transform.position.x = PlayerPrefs.GetFloat("Camera Position X")
}

Then do that for y, z, and the rotations.