Interface IElementAdder<TContext>
Interface for an object which adds elements to a context object of the type
TContext
.
Namespace: Unity.VisualScripting.ReorderableList.Element_Adder_Menu
Syntax
public interface IElementAdder<TContext>
Type Parameters
Name | Description |
---|---|
TContext | Type of the context object that elements can be added to. |
Properties
Object
Gets the context object.
Declaration
TContext Object { get; }
Property Value
Type | Description |
---|---|
TContext |
Methods
AddElement(Type)
Adds an element of the specified type
to the associated
context object.
Declaration
object AddElement(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Type of element to add. |
Returns
Type | Description |
---|---|
Object | The new element. |
CanAddElement(Type)
Determines whether a new element of the specified type
can
be added to the associated context object.
Declaration
bool CanAddElement(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Type of element to add. |
Returns
Type | Description |
---|---|
Boolean | A value of |