docs.unity3d.com
    Show / Hide Table of Contents

    Class RelativePropertyFetcher<T>

    Relative property fetcher.

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

    SerializedObject type.

    Constructors

    RelativePropertyFetcher(SerializedProperty)

    Constructor

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

    Serialized object containing properties to fetch.

    Fields

    obj

    Serialized object associated with the fetcher.

    Declaration
    public readonly SerializedProperty obj
    Field Value
    Type Description
    SerializedProperty

    Methods

    Dispose()

    Disposable pattern implementation.

    Declaration
    public void Dispose()

    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.

    Extension Methods

    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top
    Terms of use
    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