A broken video signal
Updated
The camera’s Glitch effect tears and shifts the view now and then, like a damaged feed. Buttons switch between a calm feed, the default glitches and a badly broken signal.
Press Calm, Glitchy or Broken and watch how often and how hard the picture tears. Drag to orbit the camera, scroll to zoom.
A broken video signal
#pragma lifecycle(startup)
const FEEDS = { 'feed/calm': { active: false }, 'feed/glitchy': { active: true, delay: [1.5, 3.5], duration: [0.6, 1], strength: [0.3, 1], ratio: 0.85 }, 'feed/broken': { active: true, delay: [0.2, 0.8], duration: [0.4, 1.2], strength: [0.6, 1], ratio: 0.3 },};
function startup() { const glitch = findEntity('Main Camera').getComponent(GlitchEffectComponent); for (const [signal, feed] of Object.entries(FEEDS)) { on(signal, (event) => { if (event.eventType !== EventType.UIButton.Press) return; glitch.setProps(feed); log('Feed:', signal.split('/')[1]); }); } log('Glitches every', glitch.props.delay.join(' to '), 's');}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.
BrokenSignal.xrproj