Outdated documentation

This documentation page refers to Godot 4.3, and may be outdated or incorrect.
Additionally, this engine version is no longer supported.

Check this page in the stable branch for the latest additions and corrections.

CameraTexture

Inherits: Texture2D < Texture < Resource < RefCounted < Object

Texture provided by a CameraFeed.

Description

This texture gives access to the camera texture provided by a CameraFeed.

Note: Many cameras supply YCbCr images which need to be converted in a shader.

Properties

int

camera_feed_id

0

bool

camera_is_active

false

bool

resource_local_to_scene

false (overrides Resource)

FeedImage

which_feed

0


Property Descriptions

int camera_feed_id = 0 🔗

  • void set_camera_feed_id(value: int)

  • int get_camera_feed_id()

The ID of the CameraFeed for which we want to display the image.


bool camera_is_active = false 🔗

  • void set_camera_active(value: bool)

  • bool get_camera_active()

Convenience property that gives access to the active property of the CameraFeed.


FeedImage which_feed = 0 🔗

Which image within the CameraFeed we want access to, important if the camera image is split in a Y and CbCr component.


User-contributed notes

Please read the User-contributed notes policy before submitting a comment.