Skip to content

Signal Emitter

Updated

Collects events from sibling components and sends them on as signals.

Type
comp-signal-emitter
Script class
SignalEmitterComponent
Per entity
Several
Version
1.0.0

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

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(SignalEmitterComponent);
if (component) log(component.props);
}