ElementAdderMeta.GetMenuCommands(TContext) Method

Rotorz ReorderableList

ElementAdderMetaGetMenuCommandsTContext Method
Gets an array of IElementAdderMenuCommandTContext instances that are associated with the specified contractType.

Namespace: Rotorz.ReorderableList
Assembly: Editor.ReorderableList (in Editor.ReorderableList.dll) Version: 0.0.0.0 (0.3.0.0)
Syntax
public static IElementAdderMenuCommand<TContext>[] GetMenuCommands<TContext>(
	Type contractType
)
public static function GetMenuCommands.<TContext>(
	contractType : Type
) : IElementAdderMenuCommand<TContext>[]

Parameters

contractType
Type: SystemType
Contract type of addable elements.

Type Parameters

TContext
Type of the context object that elements can be added to.

Return Value

Type: IElementAdderMenuCommandTContext
An array containing zero or more IElementAdderMenuCommandTContext instances.
Exceptions
ExceptionCondition
ArgumentNullException If contractType is null.
See Also