Say that I have a public class MyClass: List<MyObjects>
.
I want this class to have an inner method that manipulates the list, say
void ConstructListFromJSON(){
HoweverIshouldrefertomylist = JsonUtility.FromJson<List<MyObjects>("myObjects.json");
}
What should I put in place of the HoweverIshouldrefertomylist ? I've tried this
, self
and similar but it doesn't work. Surely there's a way to refer to the data strucure in the list?