Quantcast
Channel: Questions in topic: "file path"
Viewing all articles
Browse latest Browse all 6

Include XML into another XML file.

$
0
0
I have an XML file at path "Assets/Models/editor.xml". If I want to access that using a C# script, no matter what directory my script file is in, I always have to use "Assets/Models/editor.xml". Fair enough, but my editor.xml makes use of src attributes to reference other xml files in the path "Assets/Models/". Normally since the xml files are in the same folder, using src="other_xml_file.xml" should work just fine. However, with Unity, both src="other_xml_file.xml" and src="Assets/Models/other_xml_file.xml" are not working.

Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>