jeromeetienne / threejs-inspector

chrome devtool extension to debug three.js
https://chrome.google.com/webstore/detail/threejs-inspector/dnhjfclbfhcbcdfpjaeacomhbdfjbebi
200 stars 45 forks source link

display type in the hierachy #24

Open sjpt opened 7 years ago

sjpt commented 7 years ago

It would be helpful if the hierarchy displayed the object type (object.type) rather than always displaying 'Object3D'.

donmccurdy commented 7 years ago

+1. In Dev Tools i'm accomplishing this with a script like:

function printGraph( obj ) {

    console.group( ' <' + obj.type + '> ' + obj.name );

    obj.children.forEach( printGraph );

    console.groupEnd();

}

printGraph(scene);