Serialization.

AddPropertyModifierFunction(GenericMenu, SerializedProperty, string, MenuFunctionState, Action<SerializedProperty>) Method

Summary

Adds a menu item to execute the specified `function` for each of the `property`s target objects.

Syntax

public static void AddPropertyModifierFunction(this GenericMenu menu, SerializedProperty property, string label, MenuFunctionState state, Action<SerializedProperty> function)

Parameters

Name Type Description
menu GenericMenu
property SerializedProperty
label string
state MenuFunctionState
function Action<SerializedProperty>

Return Value

Type Description
void