IElementAdderMenuBuilder(TContext).AddTypeFilter Method

Rotorz ReorderableList

IElementAdderMenuBuilderTContextAddTypeFilter Method
Adds a filter function which determines whether types can be included or whether they need to be excluded.

Namespace: Rotorz.ReorderableList
Assembly: Editor.ReorderableList (in Editor.ReorderableList.dll) Version: 0.0.0.0 (0.3.0.0)
Syntax
void AddTypeFilter(
	Func<Type, bool> typeFilter
)
function AddTypeFilter(
	typeFilter : Func<Type, boolean>
)

Parameters

typeFilter
Type: SystemFuncType, Boolean
Filter function.
Exceptions
ExceptionCondition
ArgumentNullException If typeFilter is null.
Remarks

If a filter function returns a value of false then that type will not be included in the menu interface.

See Also