More in this category:
using OrbCreationExtensions;
in your source code.private object GetMaterialsFromCollada(string[] aPath) {
object materialsNode = colladaHashtable.GetNodeAtPath(new string[2] {"collada", "library_materials");
// the returned object can be of any type
// only Hashtables and ArrayLists can be converted to a nice readable JSON format
// so we have to test for the type first
if(materialsNode==null) {
Debug.Log("Nothing found");
} else if(selectedNode.GetType() == typeof(Hashtable)) {
Debug.Log("Found Hashtable (written as JSON): " + ((Hashtable)materialsNode).JsonString());
} else if(selectedNode.GetType() == typeof(ArrayList)) {
Debug.Log("Found ArrayList (written as JSON): " + ((ArrayList)materialsNode).JsonString());
} else {
Debug.Log("Found value: " + materialsNode);
}
return materialsNode;
}