Hey there, glad you enjoyed it. Theres many ways you could approach it. A simple example would be to have a game manager script and in that script add a bool for isLoaded. On start check if the playerpref key exists for your save file and if it does, then call your load function, then set isLoaded to true. You can then put your game logic behind an isloaded check, or if your familiar with listener events you can have it listen for that. If you dont have a playerpref yet then set ioaded to true and itll also start the game when you havent got a save. On exit i think unity has an OnApplicationQuit, but i cant quite remember. Id recommend looking at the documentation to find that :)
Hi there! I have a question regarding gpgs on unity. I finally got everything working but now is failing when I upload the app to store. Can you help me with that?
Hey! Ty for answer. No, im having not authorized error on Authentication. Its working fine from local build but installed from store its failing. What I tried is to create again all the oauth tokens and Im waiting to app to be approved again
Thx for the legendary videos you made. You are really amazing bro ! Please keep making such tutorials ! 😍
Glad it was useful for you chengyuan, welcome to the channel :)
Good explainer, UI Designer, programmer and he can draw. AMAZING! Thanks for all your amazing Tutorials! :D
Way too kind! I can take credit for all of that except the drawing haha. Using a software for that one :)
best binary video on TH-cam 😉
Thanks waleed. Glad it was useful, welcome to the channel :)
Such a good tutorial man! Thank you ery much!
Thanks mate, welcome to the channel!
wow very beautiful, i enjoyed it from the beginning, but i need little help, how do i make the script save on auto and load on game launch
Hey there, glad you enjoyed it. Theres many ways you could approach it. A simple example would be to have a game manager script and in that script add a bool for isLoaded. On start check if the playerpref key exists for your save file and if it does, then call your load function, then set isLoaded to true. You can then put your game logic behind an isloaded check, or if your familiar with listener events you can have it listen for that.
If you dont have a playerpref yet then set ioaded to true and itll also start the game when you havent got a save.
On exit i think unity has an OnApplicationQuit, but i cant quite remember. Id recommend looking at the documentation to find that :)
Hi there! I have a question regarding gpgs on unity. I finally got everything working but now is failing when I upload the app to store. Can you help me with that?
Hi there Fede, what kind of error message is it giving when you upload it to the store
Hey! Ty for answer. No, im having not authorized error on Authentication. Its working fine from local build but installed from store its failing. What I tried is to create again all the oauth tokens and Im waiting to app to be approved again
bro your videos are just golden info, it saved me a ton of nerves and time. Keep going! Like and sub from me!
Thanks Nazar, great to hear good feedback!
You're not supposed to use BinaryFormatter anymore.
how to detect device is mobile and make it work as per device (android)
Binary saving will work the same on android without any extra changes to the code.
the binaryformatter poses a security risk and it is stronly advised not to use it
Use Unity Services Cloud Saves and async operations. Thank me later. Don't watch the video