I’m working on Tiled parser to Unity. In Tiled, it is possibble to add objects to the level (they are stored in xml format).
I’m looking for a possibility to add any property to the object, so it can be read and used in Unity.
For example, i’m adding object with name Apple, script would search for Apple prefab (easy part) and create it.
Next, i can add some fields and values in Tiled. What i’m looking for is a way how to parse and send them to Unity prefab.
Say, i can agree that prefab should have the same name as main script (so far so good).
Actually, it is a process of deserializing object from xml.
PS: just during writing of this question, i got an idea that i can inherit all parsable prefabs script components from some base class, and use its method for sending parsed fields. But the main part of the question is still there: how to parse unknown xml?