I’ve got a set of classes
Each class has references to each other:
- City references the parent Country
Country references the cities contained via
Country references other bordering countries via
- Country references a Border class, shared between 2 Country instances
Problem is that I believe that this is causing the Unity Scene loading to slow down.
Unity occasionally crashes giving me a “low on memory” error.
EDIT Unity crashes with low memory even if the class instances aren’t created.
Anyone have an idea?
Hope someone can help! Thanks!
EDIT 2: This is caused by the inspector. Making the variables private doesn’t help…