UNPKG

@spearwolf/twopoint5d

Version:

Create 2.5D realtime graphics and pixelart with WebGL and three.js

13 lines 486 B
import { findRootNode } from './findRootNode.js'; export function printSceneGraphToConsole(node, startAtRoot = false) { if (startAtRoot) { return printSceneGraphToConsole(findRootNode(node), false); } console.group(`<${node.type || node.constructor.name}> ${node.name}`); console.dir(node); node.children.forEach((node) => { printSceneGraphToConsole(node, false); }); console.groupEnd(); } //# sourceMappingURL=printSceneGraphToConsole.js.map