Version: 2023.1
LanguageEnglish
  • C#

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

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Extension hook for an optional property revert menu item.

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