Up to date
This page is up to date for Godot
If you still find outdated information, please open an issue.
Server keeping track of different cameras accessible in Godot.
The CameraServer keeps track of different cameras accessible in Godot. These are external cameras such as webcams or the cameras on your phone.
It is notably used to provide AR modules with a video feed from the camera.
Note: This class is currently only implemented on macOS and iOS. On other platforms, no CameraFeeds will be available.
feeds ( )
get_feed_count ( )
camera_feed_added ( int id )
Emitted when a CameraFeed is added (e.g. a webcam is plugged in).
camera_feed_removed ( int id )
Emitted when a CameraFeed is removed (e.g. a webcam is unplugged).
FeedImage FEED_RGBA_IMAGE =
The RGBA camera image.
FeedImage FEED_YCBCR_IMAGE =
The YCbCr camera image.
FeedImage FEED_Y_IMAGE =
The Y component camera image.
FeedImage FEED_CBCR_IMAGE =
The CbCr component camera image.
void add_feed ( CameraFeed feed )
Adds the camera
feed to the camera server.
CameraFeed feeds ( )
Returns an array of CameraFeeds.
Returns the CameraFeed corresponding to the camera with the given
int get_feed_count ( )
Returns the number of CameraFeeds registered.
void remove_feed ( CameraFeed feed )
Removes the specified camera