Skip to main content

CameraSetActive

Description

Sets the active camera to the specified camera ID. The ID values correspond to those returned by CameraGetActive.

info

This will have no effect if camera changes are disabled using CameraAllowChange.

function CameraSetActive(cameraId) --[[ ... ]] end

Parameters

  • cameraId: integer - The desired camera ID to activate.

Return Values

None.

Example

See Also