示例#1
0
 /// <summary>
 /// Adds a menu item that will call <see cref="GatherSubProperties"/> then run the specified
 /// `function`.
 /// </summary>
 protected void AddPropertyModifierFunction(GenericMenu menu, string label,
                                            Action <SerializedProperty> function)
 {
     Serialization.AddPropertyModifierFunction(menu, CurrentProperty, label, (property) =>
     {
         GatherSubProperties(property);
         function(property);
     });
 }