Class RelativePropertyFetcher<T> | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class RelativePropertyFetcher<T>

    Inheritance
    System.Object
    RelativePropertyFetcher<T>
    Namespace: UnityEditor.Rendering
    Syntax
    public sealed class RelativePropertyFetcher<T> : IDisposable
    Type Parameters
    Name Description
    T

    Constructors

    RelativePropertyFetcher(SerializedProperty)

    Declaration
    public RelativePropertyFetcher(SerializedProperty obj)
    Parameters
    Type Name Description
    SerializedProperty obj

    Fields

    obj

    Declaration
    public readonly SerializedProperty obj
    Field Value
    Type Description
    SerializedProperty

    Methods

    Dispose()

    Declaration
    public void Dispose()

    Find(String)

    Declaration
    public SerializedProperty Find(string str)
    Parameters
    Type Name Description
    System.String str
    Returns
    Type Description
    SerializedProperty

    Find<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 SerializedProperty Find<TValue>(Expression<Func<T, TValue>> expr)
    Parameters
    Type Name Description
    Expression<System.Func<T, TValue>> expr
    Returns
    Type Description
    SerializedProperty
    Type Parameters
    Name Description
    TValue
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023