Class CustomPassVolumeBuilder
This class is responsible to set up a unity custom pass volume.
Namespace: Mechatronics.SensorSDK
Syntax
public class CustomPassVolumeBuilder
Methods
CreateCustomPass(GameObject, CustomPassDescriptor)
Look for existing custom passes on the parent gameobject. Build a custom pass on a GameObject and keep a reference to it in the descriptor.
Declaration
public static void CreateCustomPass(GameObject gameObject, CustomPassDescriptor desc)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObject | Object that will contain the custom pass. |
CustomPassDescriptor | desc | Description of the custom pass. |
CreateCustomPasses(GameObject, List<CustomPassDescriptor>)
Look for existing custom passes on the parent gameobject. This function will also build missing custompasses according to the custompass parameters found in the _sensorData descriptor.
Declaration
public static void CreateCustomPasses(GameObject gameObject, List<CustomPassDescriptor> lstCustomPassDescriptor)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObject | Object that will contain the custom pass. |
List<CustomPassDescriptor> | lstCustomPassDescriptor | A list of custom pass description to build. |
DestroyCustomPass(CustomPassDescriptor)
Destroy a custom pass according to the descriptor.
Declaration
public static void DestroyCustomPass(CustomPassDescriptor desc)
Parameters
Type | Name | Description |
---|---|---|
CustomPassDescriptor | desc | Custom pass descriptor. |
DestroyCustomPasses(List<CustomPassDescriptor>)
Destroy a list of custom passes according to the descriptor list.
Declaration
public static void DestroyCustomPasses(List<CustomPassDescriptor> lstCustomPassDescriptor)
Parameters
Type | Name | Description |
---|---|---|
List<CustomPassDescriptor> | lstCustomPassDescriptor | List of custom pass descriptor. |