- Home /
Question by
oz m · May 24, 2010 at 12:07 AM ·
rotationvector3quaternionplayerprefsplayerprefsx
How to save rotation with PlayerPrefsX?
I finally was able to save an object's position with PlayerPrefsX.SetVector3 and PlayerPrefsX.GetVector3. But I also want to save rotation, and since rotation is not a vector3 but a quaternion, it appears i can't do that with PlayerPrefsX. Does anyone know if there is a way with PlayerPrefsX or anything else with PlayerPrefs?
Comment
Best Answer
Answer by Mike 3 · May 24, 2010 at 12:39 AM
Store transform.eulerAngles instead, then put it back into transform.eulerAngles when you load
Your answer
Follow this Question
Related Questions
Unity Rotate Raycast on Quaternion 1 Answer
Perpendicular Vector3 0 Answers
Quaternion amount/value of rotation? 2 Answers
How to know if a gameobject is rotating? 1 Answer
Quaternion.Euler rotations don't add up 0 Answers