Not specified variables?

Easy Save 2 has been replaced by Easy Save 3, so is no longer supported.
Locked
leegod
Posts: 18
Joined: Sun Nov 20, 2016 10:42 am

Not specified variables?

Post by leegod »

So I have my custom classes,

public class Aclass{
public string some;
public int some2;
public float some3;
}

and if I only check [some] and [some2] variables at "Manage Type" to save,

when game loaded, how [some3] variable will be?

Will it be initialized to default value? or will it maintain the value I input when unity editor mode?
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: Not specified variables?

Post by Joel »

Hi there,

Assuming you're using self-assigning load, it will remain the same as the value set in the Editor.

If you're not using self-assigning load it will be the same value as when an instance of the object is created.

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