Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

useBeforeCapture

useBeforeCapture(callback): void

Runs callback before every capture draws, useCaptureImage, useCaptureTexture or a capture* call: it takes the capture’s camera, changes what it must, and returns what changes it back, which runs right after the draw. The latest callback runs each draw, and it stops with the component.

Parameter Type
callback BeforeCaptureCallback

void