docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UnityCameraSensor

    An RGB sensor that sources its RGB output directly from the Unity Camera component attached to same GameObject as the PerceptionCamera.

    Inheritance
    object
    CameraSensor
    UnityCameraSensor
    Inherited Members
    CameraSensor.perceptionCamera
    CameraSensor.OnEnable()
    CameraSensor.OnDisable()
    CameraSensor.OnBeginFrameRendering(ScriptableRenderContext)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Perception.GroundTruth.Sensors
    Assembly: Unity.Perception.Runtime.dll
    Syntax
    [Serializable]
    [MovedFrom("UnityEngine.Perception.GroundTruth")]
    public class UnityCameraSensor : CameraSensor

    Fields

    superSamplingFactor

    Averages multiple samples per pixel to enable a high quality anti-aliasing effect. Note that this field will not influence the final output resolution of this sensor.

    Declaration
    [Tooltip("Averages multiple samples per pixel to enable a high quality anti-aliasing effect. Note that this field will not influence the final output resolution of this sensor.")]
    public SuperSamplingFactor superSamplingFactor
    Field Value
    Type Description
    SuperSamplingFactor

    Properties

    intrinsics

    The intrinsic properties of the RGB sensor such as the field of view and projection type.

    Declaration
    public override CameraSensorIntrinsics intrinsics { get; }
    Property Value
    Type Description
    CameraSensorIntrinsics
    Overrides
    CameraSensor.intrinsics

    pixelHeight

    The pixel height of the sensor output.

    Declaration
    public override int pixelHeight { get; }
    Property Value
    Type Description
    int
    Overrides
    CameraSensor.pixelHeight

    pixelWidth

    The pixel width of the sensor output.

    Declaration
    public override int pixelWidth { get; }
    Property Value
    Type Description
    int
    Overrides
    CameraSensor.pixelWidth

    superResHeight

    The pixel height of the super resolution sensor.

    Declaration
    public int superResHeight { get; }
    Property Value
    Type Description
    int

    superResWidth

    The pixel width of the super resolution sensor.

    Declaration
    public int superResWidth { get; }
    Property Value
    Type Description
    int

    Methods

    Cleanup()

    Cleanup is called when the PerceptionCamera capturing data from this sensor is destroyed.

    Declaration
    protected override void Cleanup()
    Overrides
    CameraSensor.Cleanup()

    OnEndFrameRendering(ScriptableRenderContext)

    OnEndFrameRendering is called just after rendering has ended for the current frame.

    Declaration
    protected override void OnEndFrameRendering(ScriptableRenderContext ctx)
    Parameters
    Type Name Description
    ScriptableRenderContext ctx

    The scriptable render context for the current frame.

    Overrides
    CameraSensor.OnEndFrameRendering(ScriptableRenderContext)

    Setup()

    Setup is called when the PerceptionCamera capturing data from this sensor is initialized (on Awake).

    Declaration
    protected override void Setup()
    Overrides
    CameraSensor.Setup()

    SetupChannel<T>(T)

    Configures newly enabled channels and returns the output texture of the enabled channel.

    Declaration
    protected override RenderTexture SetupChannel<T>(T channel) where T : CameraChannelBase, new()
    Parameters
    Type Name Description
    T channel

    The channel instance being enabled through this sensor.

    Returns
    Type Description
    RenderTexture

    The output texture of the enabled channel.

    Type Parameters
    Name Description
    T

    The type of channel to configure.

    Overrides
    CameraSensor.SetupChannel<T>(T)
    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)