Method FindPropertyRelative
FindPropertyRelative(SerializedProperty, Expression<Func<object>>)
Declaration
public static SerializedProperty FindPropertyRelative(this SerializedProperty obj, Expression<Func<object>> exp)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializedProperty | obj | |
| Expression<Func<object>> | exp |
Returns
| Type | Description |
|---|---|
| SerializedProperty |
Examples
mySerializedProperty.FindPropertyRelative("m_MyField");
MyClass myclass = null; mySerializedProperty.FindPropertyRelative( () => myClass.m_MyField);