Hello. I have my own script to save position, rotation of GameObject. Position is OK, but rotation not working.
This is fragment of Save function:
rot[counter*6+3] = myObj.transform.rotation.x;
rot[counter*6+4] = myObj.transform.rotation.y;
rot[counter*6+5] = myObj.transform.rotation.z;
And here is fragment of Load function:
Quaternion rotation = obj.transform.rotation=Quaternion.Euler(data.saves[counter*6+3],data.saves[counter*6+4],data.saves[counter*6+5]);
print (rotation); //is the problem - rotation is 0,0,0;
GameObject obj1 = Instantiate (obj, position1, rotation) as GameObject;