docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetComponent

    GetComponent<T>()

    Gets the current state of the VolumeComponent of type T in the stack.

    Declaration
    public T GetComponent<T>() where T : VolumeComponent
    Returns
    Type Description
    T

    The current state of the VolumeComponent of type T in the stack.

    Type Parameters
    Name Description
    T

    A type of VolumeComponent.

    GetComponent(Type)

    Gets the current state of the VolumeComponent of the specified type in the stack.

    Declaration
    public VolumeComponent GetComponent(Type type)
    Parameters
    Type Name Description
    Type type

    The type of VolumeComponent to look for.

    Returns
    Type Description
    VolumeComponent

    The current state of the VolumeComponent of the specified type, or null if the type is invalid.

    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)