UNPKG

@spearwolf/twopoint5d

Version:

a library to create 2.5d realtime graphics and pixelart with three.js

14 lines 520 B
import { Object3D } from 'three'; 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