docs.unity3d.com
    Show / Hide Table of Contents

    Class CustomPassVolumeBuilder

    This class is responsible to set up a unity custom pass volume.

    Inheritance
    Object
    CustomPassVolumeBuilder
    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.

    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