docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Find

    Find(string)

    Find a property by name.

    Declaration
    public SerializedProperty Find(string str)
    Parameters
    Type Name Description
    string str

    Property name.

    Returns
    Type Description
    SerializedProperty

    Required property if it exists, null otherwise.

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

    Find a property based on an expression.

    Declaration
    public SerializedProperty Find<TValue>(Expression<Func<T, TValue>> expr)
    Parameters
    Type Name Description
    Expression<Func<T, TValue>> expr

    Expression for the property.

    Returns
    Type Description
    SerializedProperty

    Required property if it exists, null otherwise.

    Type Parameters
    Name Description
    TValue

    Type of the serialized object.

    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)