docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGetSubclassOf

    TryGetSubclassOf<T>(Type, out T)

    Gets the VolumeComponent, which is a subclass of type, if it exists.

    Declaration
    public bool TryGetSubclassOf<T>(Type type, out T component) where T : VolumeComponent
    Parameters
    Type Name Description
    Type type

    A type that inherits from VolumeComponent.

    T component

    The output argument that contains the VolumeComponent or null.

    Returns
    Type Description
    bool

    true if the VolumeComponent is in the Volume Profile, false otherwise.

    Type Parameters
    Name Description
    T

    A type of VolumeComponent.

    See Also
    TryGet<T>(Type, out T)
    TryGet<T>(out T)
    TryGetAllSubclassOf<T>(Type, List<T>)
    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)