Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Game Crashes when Loading XML

A topic by DrewThomasArt created 12 days ago Views: 33
Viewing posts 1 to 1

I have a brand new project for testing purposes, I walk up to an NPC which starts a dialogue that's loaded from an XML file, and the game crashes/freezes. How can I load XML on Itch? This is how it's currently loaded below, but I also tried making the XML a public variable and setting it in the Inspector.

 TextAsset textAsset = (TextAsset) Resources.Load("dialogues");

  XmlDocument doc = new XmlDocument();

 doc.LoadXml(textAsset.text);