This texture gives access to the camera texture provided by a CameraFeed. bNote:/b Many cameras supply YCbCr images which need to be converted in a shader.
    public class CameraTexture : Texture

Inheritance Chain

Constructors

    public CameraTexture()

Properties

    public int CameraFeedId { get; set; }

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

    public bool CameraIsActive { get; set; }

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

    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.

Methods

    [Obsolete("GetCameraActive is deprecated. Use the CameraIsActive property instead.")]
    public bool GetCameraActive()

Getter for CameraIsActive

    [Obsolete("GetCameraFeedId is deprecated. Use the CameraFeedId property instead.")]
    public int GetCameraFeedId()

Getter for CameraFeedId

    [Obsolete("GetWhichFeed is deprecated. Use the WhichFeed property instead.")]
    public CameraServer.FeedImage GetWhichFeed()

Getter for WhichFeed

    [Obsolete("SetCameraActive is deprecated. Use the CameraIsActive property instead.")]
    public void SetCameraActive(bool active)

Setter for CameraIsActive

    [Obsolete("SetCameraFeedId is deprecated. Use the CameraFeedId property instead.")]
    public void SetCameraFeedId(int feedId)

Setter for CameraFeedId

    [Obsolete("SetWhichFeed is deprecated. Use the WhichFeed property instead.")]
    public void SetWhichFeed(CameraServer.FeedImage whichFeed)

Setter for WhichFeed

Tags: