docs.unity3d.com
    Show / Hide Table of Contents

    Class PhotosensorSharedCustomPassVolume

    Serves as a hook for a photosensor to sample the scene simulation. The photosensor attaches to the main camera and their sampling process initializes on the BeforePostProcess.

    Inheritance
    Object
    PhotosensorSharedCustomPassVolume
    Namespace: Mechatronics.SensorSDK
    Syntax
    public class PhotosensorSharedCustomPassVolume

    Methods

    AddPhotosensor(PhotosensorData)

    Attaches a photosensor to the main camera custom pass volume on the BeforePostProcess. It will invoke "ExecuteSampling" callback defined in sensorData to execute the scene sampling.

    Declaration
    public static Guid AddPhotosensor(PhotosensorData sensorData)
    Parameters
    Type Name Description
    PhotosensorData sensorData

    Information defined on the photosensor node.

    Returns
    Type Description
    Guid

    A unique identifier to remove the photosensor later.

    RemovePhotosensor(Guid)

    Detaches a specific photosensor from the main camera custom pass volume.

    Declaration
    public static void RemovePhotosensor(Guid photosensorGuid)
    Parameters
    Type Name Description
    Guid photosensorGuid

    A unique identifier to find the photosensor in the list.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023