Question by
Wesley21spelde · Jan 11 at 01:55 PM ·
rotationloadingcoordinateswrong
Loading Rotation not working . Save & Load Game manager Script
Hey guys i have a problem with getting the .. Player.transform.rotation = rotation; working unity says Cannot implicitly convert type 'UnityEngine.Vector3' to 'UnityEngine.Quaternion' can someone please tell me how to fix this. thanks
public void LoadPlayer()
{
Vector3 position;
position.x = data.position[0];
position.y = data.position[1];
position.z = data.position[2];
Vector3 rotation;
rotation.x = data.rotation[0];
rotation.y = data.rotation[1];
rotation.z = data.rotation[2];
Player.transform.position = position;
Player.transform.rotation = rotation;
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613051535im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Problems with rotation when I try to create a offset system with Handles.PositionHandle 0 Answers
Combine two rotation 0 Answers
How do I pin an objet in world-space to a UV co-ordinate on my globe? 0 Answers
Latitude and Longitude of Globe 0 Answers
Movement code in C# works on wrong axis. 0 Answers