Skip to content

CSG

Updated

Cuts this primitive mesh out of its parent primitive mesh, joins it on, or keeps only their overlap.

Type
comp-csg
Script class
CSGComponent
Per entity
One
Version
1.0.0

Read about it in CSG: what it does, how to use it from a script, and examples.

The props the runtime declares for this component, with their defaults and accepted ranges.

Prop Default Range
operation "subtract"

Run it in the browser, read its scripts, and download it as an XR Creator project.

#pragma lifecycle(startup)
function startup() {
const component = self.parent.getComponent(CSGComponent);
if (component) log(component.props);
}