Hi,
Wondering if someone could give me a pointer on storing some game data, this would be an xml file that ships with the game and is read by the scripts at runtime.
My game will have random disasters, for each disaster I want to store its name, description and probability of happening.
I think there will be too many to just include in a static script so for ease of use I wanted to create an XML file that stores it all and I can deserialise at runtime.
I’m having a hard time working out how unity wants me to do this.
- Text asset, do I just drag and drop the xml file into my unity assets folder? Can it then be referenced from my scrips?
- Resources, do I have to create a resources folder and drop the XML in there?
- Or do I have to create an AssetBundle?
It seems like it should be really basic I’m struggling to get my head around it.