ElementAdderMenuBuilder.For(TContext) Method (Type)

Rotorz ReorderableList

ElementAdderMenuBuilderForTContext Method (Type)
Gets a IElementAdderMenuBuilderTContext to build an element adder menu for a context object of the type TContext.

Namespace: Rotorz.ReorderableList
Assembly: Editor.ReorderableList (in Editor.ReorderableList.dll) Version: 0.0.0.0 (0.3.0.0)
Syntax
public static IElementAdderMenuBuilder<TContext> For<TContext>(
	Type contractType
)
public static function For.<TContext>(
	contractType : Type
) : IElementAdderMenuBuilder<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: IElementAdderMenuBuilderTContext
A new IElementAdderMenuBuilderTContext instance.
See Also