An interface blip
Updated
Three UI buttons that each play a short, clean beep when pressed: an Audio Tone shaped once and played by a Behavior script, with no sound file to load.
Press the buttons to hear the blip. Drag to orbit the camera, scroll to zoom.
An interface blip
#pragma lifecycle(startup)
let tone;
function startup() { tone = findEntity('UI Tone').getComponent(AudioToneComponent); tone.setProps({ oscillator: 'sine', attack: 0.002, decay: 0.06, sustain: 0, release: 0.05, volume: 0.5 });
on('ui/press', (event) => { if (event.eventType === EventType.UIButton.Press) tone.play('A5', 0.06); });}How it works
Section titled “How it works”The script is explained step by step in An interface blip.
Open it in XR Creator
Section titled “Open it in XR Creator”Download the project file below, then import it in XR Hub with Projects › New › Import, as described in Projects and templates. It opens in XR Creator with the same scene you see running above, each script already attached to its Behavior entity. From there you can edit the scripts, adjust components and their props, preview your changes, and deploy the result as a world of your own.
UiBlip.xrproj