public static SerializedProperty NewArrayItem <T>(this IsEditor <T> editor, Expression <Func <T, object> > field) where T : class { var property = editor.GetProperty(field); property.InsertArrayElementAtIndex(0); return(property.GetArrayElementAtIndex(0)); }
public static IEnumerable <SerializedProperty> ForEach <T>(this IsEditor <T> editor, Expression <Func <T, object> > field) where T : class { return(editor.GetProperty(field).ForEach()); }