Class PropertyFetcherExtensions | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    Class PropertyFetcherExtensions

    Inheritance
    System.Object
    PropertyFetcherExtensions
    Namespace: UnityEditor.Rendering
    Syntax
    public static class PropertyFetcherExtensions

    Methods

    Find<TSource, TValue>(SerializedObject, Expression<Func<TSource, 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 SerializedProperty Find<TSource, TValue>(this SerializedObject obj, Expression<Func<TSource, TValue>> expr)
    Parameters
    Type Name Description
    SerializedObject obj
    Expression<System.Func<TSource, TValue>> expr
    Returns
    Type Description
    SerializedProperty
    Type Parameters
    Name Description
    TSource
    TValue

    Find<TSource, TValue>(SerializedProperty, Expression<Func<TSource, 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 SerializedProperty Find<TSource, TValue>(this SerializedProperty obj, Expression<Func<TSource, TValue>> expr)
    Parameters
    Type Name Description
    SerializedProperty obj
    Expression<System.Func<TSource, TValue>> expr
    Returns
    Type Description
    SerializedProperty
    Type Parameters
    Name Description
    TSource
    TValue
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX