Interface IElementAdderMenu
Interface for a menu interface.
Namespace: Unity.VisualScripting .ReorderableList .Element_Adder_Menu
Assembly: Unity.VisualScripting.Core.Editor.dll
Syntax
public interface IElementAdderMenu
Properties
IsEmpty
Gets a value indicating whether the menu contains any items.
Declaration
bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
bool |
|
Methods
DropDown(Rect)
Displays the drop-down menu inside an editor GUI.
Declaration
void DropDown(Rect position)
Parameters
Type | Name | Description |
---|---|---|
Rect | position | Position of menu button in the GUI. |
Remarks
This method should only be used during OnGUI and OnSceneGUI events; for instance, inside an editor window, a custom inspector or scene view.