docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetPassHeight

    GetPassHeight(SerializedProperty)

    Implement this functions if you implement DoPassGUI. The result of this function must match the number of lines displayed in your custom GUI. Note that this height can be dynamic.

    Declaration
    protected virtual float GetPassHeight(SerializedProperty customPass)
    Parameters
    Type Name Description
    SerializedProperty customPass

    Your custom pass instance represented as a SerializedProperty

    Returns
    Type Description
    float

    The height in pixels of tour custom pass GUI

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)