docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetFieldRecursively

    GetFieldRecursively(Type, string, BindingFlags)

    Gets a specific field of the Type or any of its base Types.

    Declaration
    public static FieldInfo GetFieldRecursively(this Type type, string name, BindingFlags bindingAttr)
    Parameters
    Type Name Description
    Type type

    The type which will be searched for fields.

    string name

    Name of the field to get.

    BindingFlags bindingAttr

    A bitmask specifying how the search is conducted.

    Returns
    Type Description
    FieldInfo

    An object representing the field that matches the specified requirements, if found; otherwise, null.

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