docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FindProperty

    FindProperty<T, TValue>(Expression<Func<T, TValue>>)

    To use with extreme caution. It not really get the property but try to find a field with similar name Hence inheritance override of property is not supported. Also variable rename will silently break the search.

    Declaration
    public static string FindProperty<T, TValue>(Expression<Func<T, TValue>> expr)
    Parameters
    Type Name Description
    Expression<Func<T, TValue>> expr

    Expression returning the value seeked

    Returns
    Type Description
    string

    serialization path of the seeked property

    Type Parameters
    Name Description
    T

    Entry type of expr

    TValue

    Type of the value

    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)