docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetFieldInTypeOrBaseType

    GetFieldInTypeOrBaseType(Type, string)

    Search by name through a fields of a type and its base types and return the field if one is found.

    Declaration
    public static FieldInfo GetFieldInTypeOrBaseType(this Type type, string fieldName)
    Parameters
    Type Name Description
    Type type

    The type to search.

    string fieldName

    The name of the field to search for.

    Returns
    Type Description
    FieldInfo

    The field, if found.

    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)