Device Camera

Gives your Lens the camera picture, live or frozen as a still. Your Lens can show that picture on a surface, or keep the still to use later.

Camera, Audio & Sensors

Camera feed, hand and face tracking, touch, tilt, haptics, and sound.

Made with this block

Functions

captureFrameTexture

Snapshot the live device camera feed and return it as a new Texture frozen at the moment of the call. Returns a fresh Texture each call (null only if the device camera texture is unavailable). The texture can be applied to a material, drawn, or post-processed. Call it from a normal event (e.g. TapEvent), not before the first frame has rendered.

getLiveTextureTexture

Return the LIVE device camera Texture — it keeps updating every frame. Apply it to a material to show the live camera feed. Returns the same texture object each call (null only if the device camera texture is unavailable). For a frozen still use captureFrame() instead.