기술 자료

Unity Engine

Unity Engine

ContextMenuItemAttribute(string, string)

Use this attribute to add a context menu to a field that calls a named method.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Constructor
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
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.