On Click
Fires a short pulse when its object is clicked — the bridge from user input into the graph.
Output: event — outputs 1 for a short window after the click, 0 otherwise (the card's dot lights up while pulsing)
Inputs
None.
Parameters
| Parameter | Default | Meaning |
|---|---|---|
| pulse | 0.3 s | how long the output stays at 1 after a click |
On Click watches the object picked by the Object Selector it is connected to — that connection is what tells it which object to listen on. A desktop click or a VR trigger press on that object fires the pulse. The click travels as one tiny replicated message with a shared timestamp, so every peer's downstream logic agrees.
Practical example
A click counter button:
- Add an On Click, an Object Selector picking your button cube, and a Counter.
- Connect On Click to the Object Selector (identifies the watched object) and On Click → Counter's pulse input.
- Click the cube in the viewport: the Counter ticks up — by exactly one, on every peer.
Tip
Event pulses convert to numbers/booleans, so On Click can also feed a Visibility on input directly — the target flashes visible for the pulse window on each click.