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.
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
Live example
An unattended kioskA PDF noticeboard turns to the next page every eight seconds, and waits thirty seconds after a visitor turns a page with its pill.
Watch the pages turn every eight seconds, or use the page pill to read at your own pace. Drag elsewhere to orbit the camera, scroll to zoom.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(SignalEmitterComponent); if (component) log(component.props);}