Search found 10 matches

by MikeyNg
Tue Mar 29, 2022 6:31 pm
Forum: General Discussion
Topic: Saving List of Custom Type
Replies: 8
Views: 1876

Re: Saving List of Custom Type

Yes, I was having those warnings about references, but not to worry if I was creating it dynamically.

I guess I should have been worried :)

But it seems to work now by "preloading" the GOs into a different prefab that just sits in the scene.
by MikeyNg
Thu Mar 24, 2022 10:22 pm
Forum: General Discussion
Topic: Saving List of Custom Type
Replies: 8
Views: 1876

Re: Saving List of Custom Type

I'm just having an empty GameObject with a bunch of prefabs in it. So that seems to be working??
by MikeyNg
Thu Mar 24, 2022 6:08 pm
Forum: General Discussion
Topic: Saving List of Custom Type
Replies: 8
Views: 1876

Re: Saving List of Custom Type

Code here: [System.Serializable] public class TurretBlueprint { [SerializeField] public GameObject prefab; [SerializeField] public GameObject fadeInPrefab; [SerializeField] public int cost; public TurretBlueprint() { } public TurretBlueprint(GameObject prefabGO, GameObject fadeInGO, int costValue) {...
by MikeyNg
Thu Mar 24, 2022 12:49 am
Forum: General Discussion
Topic: Saving List of Custom Type
Replies: 8
Views: 1876

Saving List of Custom Type

I want to save a list of a custom Type. The Type is basically a "shell" that holds two GameObjects and an int. (A GameObject, a temporary GO that fades in, and a cost) When I load the list, the GOs are gone, but the int is still there. It's also weird because there are 1 or 2 specific GOs ...
by MikeyNg
Wed Feb 16, 2022 8:30 pm
Forum: General Discussion
Topic: How to check my cache?
Replies: 4
Views: 775

Re: How to check my cache?

I found the problem:

I had it set up to load the stats AFTER I loaded the file into the cache.

Check that Script Execution Order, people!!
by MikeyNg
Wed Feb 16, 2022 8:04 pm
Forum: General Discussion
Topic: How to check my cache?
Replies: 4
Views: 775

Re: How to check my cache?

what would be the filename for the cache?
by MikeyNg
Tue Feb 15, 2022 11:35 pm
Forum: General Discussion
Topic: How to check my cache?
Replies: 4
Views: 775

How to check my cache?

I want to load into my cache - how do I check that there's actually stuff in there? That it's loading properly??
by MikeyNg
Wed Dec 01, 2021 2:15 am
Forum: Code Examples
Topic: REQUEST EXAMPLES AND TUTORIALS HERE
Replies: 80
Views: 104690

Re: REQUEST EXAMPLES AND TUTORIALS HERE

thank you! Somehow I forgot to look at the Tools menu and was trying to do everything through scripts.....

Thanks again!!
by MikeyNg
Tue Nov 30, 2021 9:09 pm
Forum: Code Examples
Topic: REQUEST EXAMPLES AND TUTORIALS HERE
Replies: 80
Views: 104690

Re: REQUEST EXAMPLES AND TUTORIALS HERE

Thanks! Best way to change the default filename in the settings would be...? // Create a new ES3Settings to enable encryption. var settings = new ES3Settings(ES3.EncryptionType.AES, "myPassword"); // Change the save location to PlayerPrefs. settings.saveLocation = ES3.Location.PlayerPrefs;...
by MikeyNg
Tue Nov 30, 2021 8:19 pm
Forum: Code Examples
Topic: REQUEST EXAMPLES AND TUTORIALS HERE
Replies: 80
Views: 104690

Re: REQUEST EXAMPLES AND TUTORIALS HERE

Is there a "best practices" place for just starting up? Here's where I am with my project and my questions: It seems best to set up a local cache and then load/save at appropriate times. (Not constantly) It also seems like I should set up some sort of "SaveManager" and call scrip...