Skip to content

A webcam mirror

Updated

Start camera publishes your camera as the stream me/camera, which a Video entity with a Media Stream plays; pressing again unpublishes it and stops the camera.

Press Start camera and allow the camera to see yourself on the screen; press it again to stop. Needs a camera and your permission.

A webcam mirror

The script is explained step by step in A webcam mirror.

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.

WebcamMirror.xrproj