Reorderable List Control for Unity
IElementAdderMenuBuilderTContext Interface |
Interface for building an IElementAdderMenu.
Namespace: Rotorz.ReorderableList
Assembly: Editor.ReorderableList (in Editor.ReorderableList.dll) Version: 0.0.0.0 (0.3.0.0)
Syntax
public interface IElementAdderMenuBuilder<TContext>
public interface IElementAdderMenuBuilder.<TContext>
Type Parameters
- TContext
- Type of the context object that elements can be added to.
The IElementAdderMenuBuilderTContext type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddCustomCommand |
Adds a custom command to the menu.
| |
AddTypeFilter |
Adds a filter function which determines whether types can be included or
whether they need to be excluded.
| |
GetMenu |
Builds and returns a new IElementAdderMenu instance.
| |
SetContractType |
Sets contract type of the elements that can be included in the IElementAdderMenu.
Only non-abstract class types that are assignable from the contractType
will be included in the built menu.
| |
SetElementAdder |
Set the IElementAdderTContext implementation which is used
when adding new elements to the context object.
| |
SetTypeDisplayNameFormatter |
Set the function that formats the display of type names in the user interface.
|
See Also