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