Skip to main content

GroupElement

GroupElement serves as an alias for THREE.Group, inspectable in the editor. It represents a container element that groups multiple child elements together. Useful for organizing the scene hierarchy, applying collective transformations, or managing a set of elements as a single logical unit. In the near future, it will support advanced features like clipping and occlusion rules.

Creating a new Group Element:

const group = new GroupElement();
scene.add(group);

// Adding child elements to the group
group.add(childElement1);
group.add(childElement2);