Easy XML Parser
Stinky Rhino
$15.00
Date |
Price |
---|---|
日期和时间 |
价钱($) |
04/27(2018) |
15.0 |
11/18(2024) |
15.0 |
Jump AssetStore
Easy XML parser/writer
There are two ways to use it:
1. Standalone in code. In just 1 single line of code you can parse XML files!
2. As a component. Just drag and drop on a GameObject of choice and fill in the parameters.
In both cases you are required to create the data classes yourself, so the parser knows what you actually want from the XML file. This is very easy, see the two demo data classes. Supported class member types: all basic types: (un)signed int 16/32/64, bool, string, float, etc. If I get enough requests, I can add other (complex) types as well.
Standalone XML parsing
The XmlParser doesn't need to be attached to a GameObject or anything, just keep it somewhere in your Assets folder. It works for any class type with a public empty constructor.
XML parsing as a Component
Attach the XmlParserComponent to your GameObject of choice. It adds components to the attached GameObject for each parsed element, or it adds new GameObjects for each parsed element (your choice).