Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CreateMenu(IPanel)

Creates an instance of AbstractGenericMenu that is valid at Runtime or within the Editor.
Read time 1 minuteLast updated 11 days ago

Definition

public static AbstractGenericMenu CreateMenu(this IPanel panel)

Parameters

panel

The panel that will create the menu.

Returns

Type

Description

AbstractGenericMenuAn instance of
AbstractGenericMenu
.

Remarks

If the
panel
is an
EditorPanel
, creates a
GenericOSMenu
. If the
panel
is a
RuntimePanel
, creates a
GenericDropdownMenu
.