A halftone print look
Updated
The camera’s Dot Screen effect turns the view into printed halftone dots, at the runtime Effects demo’s strength. The script turns the dot grid and steps it between fine and coarse.
Watch the dot grid turn and change size every few seconds. Drag to orbit the camera, scroll to zoom.
A halftone print look
#pragma lifecycle(startup)
const STEPS = [ { angle: 45, scale: 1 }, { angle: 15, scale: 0.6 }, { angle: 75, scale: 1.6 },];
function wait(ms) { return new Promise((done) => delay(done, ms));}
async function startup() { const dots = findEntity('Main Camera').getComponent(DotScreenEffectComponent); for (let i = 0; ; i = (i + 1) % STEPS.length) { dots.setProps(STEPS[i]); log(`Dots at ${STEPS[i].angle}°, scale ${STEPS[i].scale}`); await wait(3000); }}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.
HalftonePrint.xrproj