Class RelativePropertyFetcher<T>
Inheritance
System.Object
RelativePropertyFetcher<T>
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 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()
Implements
System.IDisposable.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 |