protected SerializedProperty FindProperty <T, TValue>(Expression <Func <T, TValue> > expr) { Debug.Assert(serializedObject != null); var prop = serializedObject.FindProperty(ReflectionUtils.GetFieldPath(expr)); Debug.Assert(prop != null, string.Format("Failed to find SerializedProperty for expression '{0}'", expr)); return(prop); }
protected SerializedProperty FindProperty <T, TValue>(Expression <Func <T, TValue> > expr) { Debug.Assert(serializedObject != null); return(serializedObject.FindProperty(ReflectionUtils.GetFieldPath(expr))); }