CameraTexture
Texture provided by a CameraFeed.
Texture provided by a CameraFeed.
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.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
CameraTextureConstructor
public CameraTexture();Properties3
CameraFeedIdProperty
public int CameraFeedId { get; set; }The ID of the CameraFeed for which we want to display the image.
CameraIsActiveProperty
public bool CameraIsActive { get; set; }Convenience property that gives access to the active property of the CameraFeed.
WhichFeedProperty
public CameraServer.FeedImage WhichFeed { get; set; }Which image within the CameraFeed we want access to, important if the camera image is split in a Y and CbCr component.
Methods6
GetCameraActivebool
public bool GetCameraActive();Returns
boolGetCameraFeedIdint
public int GetCameraFeedId();Returns
intGetWhichFeedCameraServer.FeedImage
public CameraServer.FeedImage GetWhichFeed();Returns
CameraServer.FeedImageSetCameraActivevoid
public void SetCameraActive(bool active);| Name | Type | Default |
|---|---|---|
active | bool | — |
SetCameraFeedIdvoid
public void SetCameraFeedId(int feedId);| Name | Type | Default |
|---|---|---|
feedId | int | — |
SetWhichFeedvoid
public void SetWhichFeed(CameraServer.FeedImage whichFeed);| Name | Type | Default |
|---|---|---|
whichFeed | CameraServer.FeedImage | — |
Reckfell Engine documentationBack to top ↑