PlayerPrefs on Camera position?

Can´t find anything on this matter! How do you SetFloat & GetFloat Playerprefs on Camera.main position! Move camera, exit game back in game camera at the same position you left!
Thanks in advance for any reply!

http://wiki.unity3d.com/index.php/ArrayPrefs2

–Eric

Hi!
I don´t need all that PlayerPrefsX it´s too overkill for now, I should have use it when I started, next time!
I have already use some of the regular PlayerPrefs and I only need to set the Camera position then I´m done!
Do have an example to do that!
Thank you for reply!

Use SetVector3 and GetVector3 from ArrayPrefs2. It doesn’t matter if you don’t use the rest.

–Eric

You could also just set all three individual camera values, if you don’t want to use Eric’s example for some reason.

PlayerPrefs.SetFloat("Camera X", camera.transform.position.x);

// repeat for Y and Z

Thankyou for your help!

I have fix it! First It didn´t work to write a specific script to get the cameras position, a cameracontrol script lock the transforms of the camera. So I have to write in that script with regular PlayerPrefs and it works now!
I didn´t need ArrayPrefs2, but I will try that next time, I can see there is a lot of more control in that script!
Thank for all your help!