docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGetAllSubclassOf

    TryGetAllSubclassOf<T>(Type, List<T>)

    Gets all the VolumeComponent that are subclasses of the specified type, if there are any.

    Declaration
    public bool TryGetAllSubclassOf<T>(Type type, List<T> result) where T : VolumeComponent
    Parameters
    Type Name Description
    Type type

    A type that inherits from VolumeComponent.

    List<T> result

    The output list that contains all the VolumeComponent if any. Note that Unity does not clear this list.

    Returns
    Type Description
    bool

    true if any VolumeComponent have been found in the profile, false otherwise.

    Type Parameters
    Name Description
    T

    A type of VolumeComponent.

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