docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CameraChannelBase

    The base class for CameraChannels. A camera channel generates supplementary per-pixel ground truth data for the pixel data captured by a CameraSensor.

    Inheritance
    object
    CameraChannelBase
    CameraChannel<T>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Perception.GroundTruth.Sensors.Channels
    Assembly: Unity.Perception.Runtime.dll
    Syntax
    [MovedFrom("UnityEngine.Perception.GroundTruth")]
    public abstract class CameraChannelBase

    Properties

    clearColor

    The color to use when clearing the output texture of the channel.

    Declaration
    public abstract Color clearColor { get; }
    Property Value
    Type Description
    Color

    outputTexture

    The RenderTexture output of the channel.

    Declaration
    public RenderTexture outputTexture { get; }
    Property Value
    Type Description
    RenderTexture

    perceptionCamera

    The PerceptionCamera that enabled the channel.

    Declaration
    protected PerceptionCamera perceptionCamera { get; }
    Property Value
    Type Description
    PerceptionCamera

    Methods

    CreateOutputTexture(int, int)

    Initializes and returns a new RenderTexture that will contain the output of the channel.

    Declaration
    public abstract RenderTexture CreateOutputTexture(int width, int height)
    Parameters
    Type Name Description
    int width

    The requested width of the output texture in pixels.

    int height

    The requested height of the output texture in pixels.

    Returns
    Type Description
    RenderTexture

    The newly created channel output texture.

    Execute(CameraChannelInputs, RenderTexture)

    Perform the graphics operations necessary to render the output of the channel.

    Declaration
    public abstract void Execute(CameraChannelInputs inputs, RenderTexture renderTarget)
    Parameters
    Type Name Description
    CameraChannelInputs inputs

    A variety of input parameters that can be used to provide context to a channel to facilitate rendering.

    RenderTexture renderTarget

    The render target to write the channel output to.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)