Hi guys ^^. I have to do a map generator to load variables from a XML. Anyone have any script that reads any variable and then use it, for example, to resize a box?:
A xml, for example:
And then, with a script in Unity, use these variables for create a cube in the position 0,1 and size 2x2? Anyone know how to do it? Thank you very much ;D
Sorry for my english.
Btw. XML attribute-values should be surounded with quotation marks (") or you will get in trouble depending on the xml parser you use and what values you store in the attributes.
AFAIK there's no ready-to-use script around so you have to interpret your xml yourself, but it shouldn't be that difficult.
answered Dec 11 '11 at 04:31 AM