docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RGBChannel

    A CameraChannel<T> that outputs the captured RGB color value for each pixel.

    Inheritance
    object
    CameraChannelBase
    CameraChannel<Color32>
    RGBChannel
    Inherited Members
    CameraChannel<Color32>.outputTextureReadback
    CameraChannelBase.perceptionCamera
    CameraChannelBase.outputTexture
    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 class RGBChannel : CameraChannel<Color32>

    Properties

    clearColor

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

    Declaration
    public override Color clearColor { get; }
    Property Value
    Type Description
    Color
    Overrides
    CameraChannelBase.clearColor

    Methods

    CreateOutputTexture(int, int)

    Creates render texture with required sizes

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

    Width of render texture

    int height

    Height of render texture

    Returns
    Type Description
    RenderTexture

    RenderTexture

    Overrides
    CameraChannelBase.CreateOutputTexture(int, int)

    Execute(CameraChannelInputs, RenderTexture)

    Sets camera output to the specified renderTarget

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

    Input camera

    RenderTexture renderTarget

    Target texture to render

    Overrides
    CameraChannelBase.Execute(CameraChannelInputs, RenderTexture)
    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)