Question by
Szilvia1974 · Jun 04, 2020 at 08:45 PM ·
xmlxmlserializer
xml file read as MonsterCollection.cs
Hello,
I have a xml file and I would like to use the MonsterCollection.cs from this website https://wiki.unity3d.com/index.php/Saving_and_Loading_Data:_XmlSerializer . I make the MonsterCollection.cs file and I connect it to "Main camera". How can I connect Reading : var monsterCollection = MonsterContainer.Load(Path.Combine(Application.dataPath, "monsters.xml")); var xmlData = @"5"; var monsterCollection = MonsterContainer.LoadFromText(xmlData);
Thank you for your answer.
Comment