FANDOM


Syntax


SET PRECAMERA CALLBACK FunctionPointer
SET PRECAMERA CALLBACK FunctionName


Description


These commands allow you to specify a function that will be called immediately prior to each camera being rendered.

The function will be passed a single integer argument that will contain the current camera ID.

Your function should look like this:
FUNCTION YourFunctionName(CameraID as integer)
ENDFUNCTION

Any attempt to call the SYNC command within the callback will be ignored.

A FunctionPointer value of 0 or a FunctionName of "" will cause the callback to be disabled.

Community content is available under CC-BY-SA unless otherwise noted.