Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

ContextMenuItemAttribute Constructor

Declaration

public ContextMenuItemAttribute(string name, string function);

Parameters

name The name of the context menu item.
function The name of the function that should be called.

Description

Use this attribute to add a context menu to a field that calls a named method.