Class PropertyFetcherExtensions
Property fetcher extension class.
Inherited Members
Namespace: UnityEditor .Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public static class PropertyFetcherExtensions
Methods
Find<TSource, TValue>(SerializedObject, Expression<Func<TSource, TValue>>)
Retrieves a Serialized
Declaration
public static SerializedProperty Find<TSource, TValue>(this SerializedObject obj, Expression<Func<TSource, TValue>> expr)
Parameters
Type | Name | Description |
---|---|---|
Serialized |
obj | The Serialized |
Expression<Func<TSource, TValue>> | expr | A lambda expression pointing to the field within the source class. |
Returns
Type | Description |
---|---|
Serialized |
The corresponding Serialized |
Type Parameters
Name | Description |
---|---|
TSource | The class type containing the field. |
TValue | The field type. |
Find<TSource, TValue>(SerializedProperty, Expression<Func<TSource, TValue>>)
Retrieves a relative Serialized
Declaration
public static SerializedProperty Find<TSource, TValue>(this SerializedProperty obj, Expression<Func<TSource, TValue>> expr)
Parameters
Type | Name | Description |
---|---|---|
Serialized |
obj | The instance of Serialized |
Expression<Func<TSource, TValue>> | expr |
|
Returns
Type | Description |
---|---|
Serialized |
The relative Serialized |
Type Parameters
Name | Description |
---|---|
TSource | The class type containing the field. |
TValue | The field type. |