reckfellENGINE

CameraServer

Server keeping track of different cameras accessible in Reckfell.

On this page
class CameraServerReckfellSharp

Server keeping track of different cameras accessible in Reckfell.

The CameraServer keeps track of different cameras accessible in Reckfell. 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 Linux, Android, macOS, and iOS. On other platforms no CameraFeeds will be available. To get a CameraFeed on iOS, enable EditorExportPlatformIOS.modules/camera.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Properties2

MonitoringFeedsProperty
# MonitoringFeeds
C#
public static bool MonitoringFeeds { get; set; }

If true, the server is actively monitoring available camera feeds. This has a performance cost, so only set it to true when you're actively accessing the camera. Note: After setting it to true, you can receive updated camera feeds through the CameraServer.CameraFeedsUpdated signal.

C#
public override void _Ready()
{
    CameraServer.CameraFeedsUpdated += OnCameraFeedsUpdated;
    CameraServer.MonitoringFeeds = true;
}

void OnCameraFeedsUpdated()
{
    var feeds = CameraServer.Feeds();
}
SingletonProperty
# Singleton
C#
public static CameraServerInstance Singleton { get; }

Methods7

AddFeedvoid
# AddFeed
C#
public static void AddFeed(CameraFeed feed);

Adds the camera feed to the camera server.

Parameters
NameTypeDefault
feedCameraFeed—
FeedsReckfell.Collections.Array<CameraFeed>
# Feeds
C#
public static Reckfell.Collections.Array<CameraFeed> Feeds();

Returns an array of CameraFeeds.

Returns Reckfell.Collections.Array<CameraFeed>
GetFeedCameraFeed
# GetFeed
C#
public static CameraFeed GetFeed(int index);

Returns the CameraFeed corresponding to the camera with the given index.

Parameters
NameTypeDefault
indexint—
Returns CameraFeed
GetFeedCountint
# GetFeedCount
C#
public static int GetFeedCount();

Returns the number of CameraFeeds registered.

Returns int
IsMonitoringFeedsbool
# IsMonitoringFeeds
C#
public static bool IsMonitoringFeeds();
Returns bool
RemoveFeedvoid
# RemoveFeed
C#
public static void RemoveFeed(CameraFeed feed);

Removes the specified camera feed.

Parameters
NameTypeDefault
feedCameraFeed—
SetMonitoringFeedsvoid
# SetMonitoringFeeds
C#
public static void SetMonitoringFeeds(bool isMonitoringFeeds);
Parameters
NameTypeDefault
isMonitoringFeedsbool—

Signals and events3

CameraFeedAddedEvent
# CameraFeedAdded
C#
public static event CameraServer.CameraFeedAddedEventHandler CameraFeedAdded;

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

Handler parameters
NameTypeDefault
idlong—
CameraFeedRemovedEvent
# CameraFeedRemoved
C#
public static event CameraServer.CameraFeedRemovedEventHandler CameraFeedRemoved;

Emitted when a CameraFeed is removed (e.g. a webcam is unplugged).

Handler parameters
NameTypeDefault
idlong—
CameraFeedsUpdatedEvent
# CameraFeedsUpdated
C#
public static event Action CameraFeedsUpdated;

Emitted when camera feeds are updated.

CameraServer.FeedImage

ValueDescription
CbcrImage = 1

The CbCr component camera image.

RgbaImage = 0

The RGBA camera image.

YImage = 0

The Y component camera image.

YcbcrImage = 0

The YCbCr(https://en.wikipedia.org/wiki/YCbCr) camera image.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.