Class PropertyFetcherExtensions
Inheritance
System.Object
PropertyFetcherExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEditor.Experimental.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 |