Struct CameraFeed

A camera feed gives you access to a single physical camera attached to your device.

struct CameraFeed ;

When enabled, Godot will start capturing frames from the camera which can then be used. Note: Many cameras will return YCbCr images which are split into two textures and need to be combined in a shader. Godot does this automatically for you if you set the environment to show the camera image in the background.

Properties

NameTypeDescription
feedIsActive[get, set] boolIf true, the feed is active.
feedTransform[get, set] Transform2DThe transform applied to the camera's image.

Methods

NameDescription
_allocateTexture
_setName
_setPosition
_setRgbImg
_setYcbcrImg
_setYcbcrImgs
getId Returns the unique ID for this feed.
getName Returns the camera's name.
getPosition Returns the position of camera on the device.
getTransform
isActive
setActive
setTransform

Enums

NameDescription
Constants
FeedDataType
FeedPosition