private static void PrintContentTree(NodeContent node, StringBuilder stringBuilder, int indentation = 0) { if (stringBuilder == null) { throw new ArgumentNullException("stringBuilder"); } if (node == null) { return; } stringBuilder.Append('\t', indentation); stringBuilder.AppendFormat("\"{0}\" ({1})\n", node.Name, node.GetType()); indentation++; var mesh = node as MeshContent; if (mesh != null) { foreach (var geometry in mesh.Geometry) { stringBuilder.Append('\t', indentation); stringBuilder.AppendFormat("\"{0}\" ({1})\n", geometry.Name, geometry.GetType()); } stringBuilder.AppendLine(); } foreach (var child in node.Children) { PrintContentTree(child, stringBuilder, indentation); } }
private void printNodeTree(NodeContent input, ContentProcessorContext context, string start) { context.Logger.LogImportantMessage(start + "- Name: {0} - {1}", input.Name, input.GetType()); foreach (NodeContent node in input.Children) { printNodeTree(node, context, start + "-"); } }