flatten

  • Flattens the scene graph, leaving Nodes with Meshes, Cameras, and other attachments as direct children of the Scene. Skeletons and their descendants are left in their original Node structure.

    Animation targeting a Node or its parents will prevent that Node from being moved.

    Example:

    import { flatten } from '@gltf-transform/functions';
    
    await document.transform(flatten());
    
Function symbol, where the argument and output are a box labeled 'glTF'.

Made by Don McCurdy. Documentation built with greendoc and published under Creative Commons Attribution 3.0.