Example #1
0
        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);
        }
Example #2
0
 protected SerializedProperty FindProperty <T, TValue>(Expression <Func <T, TValue> > expr)
 {
     Debug.Assert(serializedObject != null);
     return(serializedObject.FindProperty(ReflectionUtils.GetFieldPath(expr)));
 }