Version: 2021.3

IApplyRevertPropertyContextMenuItemProvider.bool TryGetApplyMethodForFieldName(SerializedProperty, out Action<SerializedProperty>)

切换到手册

描述

Extension hook for an optional property apply menu item.

Called as the context menu is being built to retrieve the method to be called (if any) when the user select the 'apply' menu item. The boolean return value defines if a apply menu item is to be shown.