IElementAdderMenuBuilderTContextAddTypeFilter Method |
Adds a filter function which determines whether types can be included or
whether they need to be excluded.
Namespace: Rotorz.ReorderableListAssembly: Editor.ReorderableList (in Editor.ReorderableList.dll) Version: 0.0.0.0 (0.3.0.0)
Syntaxvoid AddTypeFilter(
Func<Type, bool> typeFilter
)
function AddTypeFilter(
typeFilter : Func<Type, boolean>
)
Parameters
- typeFilter
- Type: SystemFuncType, Boolean
Filter function.
ExceptionsException | Condition |
---|
ArgumentNullException |
If typeFilter is null.
|
RemarksIf a filter function returns a value of false then that type
will not be included in the menu interface.
See Also