How do i create save keys when the game build is created

Discussion and help for Easy Save 3
Post Reply
Recktardeded
Posts: 24
Joined: Sun Jun 12, 2022 8:30 am

How do i create save keys when the game build is created

Post by Recktardeded »

Hello, i m working on a phone game, and i would like to know how i could make a few save keys by default (currency1, currency2, etc)
And i don t fully understand how can i do that, i also don t understand what the defaultValue is.
Thanks!
Recktardeded
Posts: 24
Joined: Sun Jun 12, 2022 8:30 am

Re: How do i create save keys when the game build is created

Post by Recktardeded »

hello, i ve fixed the problem, i ve added a script in the main menu
void Start()
{
if (!ES3.KeyExists("Currency1"))
{
ES3.Save("Currency1", 0);
}
}
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: How do i create save keys when the game build is created

Post by Joel »

Glad you managed to find the solution.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply