The CameraServer keeps track of different cameras accessible in Godot. These are external cameras such as webcams or the cameras on your phone.
    public static class CameraServer

Inheritance Chain

Static Properties

    public static Object Singleton { get; }

Static Methods

    public static void AddFeed(CameraFeed feed)

Adds a camera feed to the camera server.

    public static Godot.Collections.Array Feeds()

Returns an array of CameraFeeds.

    public static CameraFeed GetFeed(int index)

Returns the CameraFeed with this id.

    public static int GetFeedCount()

Returns the number of CameraFeeds registered.

    public static void RemoveFeed(CameraFeed feed)

Removes a CameraFeed.

Signals

    "camera_feed_added" (int id)

Emitted when a CameraFeed is added (webcam is plugged in).

    "camera_feed_removed" (int id)

Emitted when a CameraFeed is removed (webcam is removed).

Inner Types

FeedImage

Name Value Description
RgbaImage 0 The RGBA camera image.
YcbcrImage 0 The YCbCr camera image.
YImage 0 The Y component camera image.
CbcrImage 1 The CbCr component camera image.
Tags: