Карм
Мастер
(1641)
8 месяцев назад
// Сохранение позиции и вращения GameObject
PlayerPrefs.SetFloat("GameObjectPositionX", gameObject.transform.position.x);
PlayerPrefs.SetFloat("GameObjectPositionY", gameObject.transform.position.y);
PlayerPrefs.SetFloat("GameObjectPositionZ", gameObject.transform.position.z);
PlayerPrefs.SetFloat("GameObjectRotationX", gameObject.transform.rotation.x);
PlayerPrefs.SetFloat("GameObjectRotationY", gameObject.transform.rotation.y);
PlayerPrefs.SetFloat("GameObjectRotationZ", gameObject.transform.rotation.z);
PlayerPrefs.SetFloat("GameObjectRotationW", gameObject.transform.rotation.w);