PopulateContextMenu
Raised when a right click is handled on a HierarchyNode or on the background of the view.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Event
- Namespace: Unity.Hierarchy
- Assembly: UnityEngine.HierarchyModule
public event HierarchyView.PopulateContextMenuEventHandler PopulateContextMenu
Remarks
This callback receives the HierarchyView and the HierarchyViewItem to create the context menu for, and the DropdownMenu to populate. If the user right-clicks in empty space, the callback receives null for the view item.