How to Save/Load the rotation of my player

Hello, I’m making a 2D Platformer and I’m trying to save the rotation of the Player in Playerprefs whenever he hits the “Checkpoint” and when he dies the rotation should be loaded.
The position is no problem at all but I dont get how to save/load the rotation.

If someone could point me out how to do it or give me a hint, I would be very thankfull.

you can save the rotation as a vector if i remember you need to type transform.euler and it give you the rotation as a vector

@The_Icaruz

ScriptableObject(s)
A class you can derive from if you want to create objects that don’t need to be attached to game objects.
This is most useful for assets which are only meant to store data.

So you could use one as a datastore to hold rotation and save/read from it.

Also, this is a good tutorial on persisting objects to disk.