Closed ghost1372 closed 6 years ago
Hey,
EnableAutosave();
returns what ever you feed it, so if its mysetting
then it'll return mysetting
.
Simply change the declaration and loading to this:
public static **mysetting** Settings = JsonSettings.Load<mysetting>("config.json").EnableAutosave();
Edit: I've updated the documentation to be more newbie-friendly.
tnx problem solved
hi again, tnx for update, i have problem can you explain more about how to use? this code is fine
var x = JsonSettings.Load<mysetting>("config.json").EnableAutosave();
but i need to use like thispublic static JsonSettings Settings = JsonSettings.Load<mysetting>("config.json").EnableAutosave();
problem is i cant access my prop like this: x.myprop