Question by
xxfelixlangerxx · Feb 29, 2020 at 05:08 PM ·
savesavingstatic variable
Get public static list
Ok so here me out. I want to implement saving in my game using brackeyes tutorial, but i cant access a variable. I have one script wich includes a public static List wich i now want to access using the save class. so this could would be: public class Data { public List list;
public Data (Script script)
{
list = script.list;
}
} however this dosnt work because the variable is static i cant change it to be not static. Havent found any solutions online if i've missed something pls send me a link
Comment
Your answer
Follow this Question
Related Questions
Save and load whole scene 2 Answers
How can i save random-generated maps during gameplay ? 1 Answer
Saving all prefab positions in one JSON file 0 Answers
How can I save level progression 1 Answer