Class RGBChannel
A CameraChannel<T> that outputs the captured RGB color value for each pixel.
Inherited Members
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
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
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 |