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
Name | Type | Description |
---|---|---|
feedIsActive [get, set]
|
bool | If true , the feed is active.
|
feedTransform [get, set]
|
Transform2D | The transform applied to the camera's image. |
Methods
Name | Description |
---|---|
_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
Name | Description |
---|---|
Constants
|
|
FeedDataType
|
|
FeedPosition
|