Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: xunxun on September 19, 2013, 02:39:49 PM

Title: Save a Game object location?
Post by: xunxun on September 19, 2013, 02:39:49 PM
How can I save a Rotation and Location of an Object on screen and reuse that in next time run?

To be clear, this is the simple process.

1. Run game -> Get location of the Main Camera
2. Stop Game
3. Run Game again and I want the Main Camera is set at the last Position

thanks
Title: Re: Save a Game object location?
Post by: pjrm1470 on September 19, 2013, 02:52:39 PM
When you say "Run game", you mean open the application and run the game?
If that's it, then you'll need Serialization.

Or "run game" means keep the application (game) open, enter the scene quit it and enter it again?

best regards,
PJRM
Title: Re: Save a Game object location?
Post by: Alex Chouls on September 19, 2013, 04:42:11 PM
You could use PlayerPrefs to save/load the info. Or I believe I've seen other serialization actions popping up on the forum...