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.
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. |