GetNodeComponent
GetNodeComponent(INodeComponentContainer, Type)
public static NodeComponent GetNodeComponent(this INodeComponentContainer container, Type componentType) ;
Description
Get a NodeComponent by specifying its type.
Parameters
| Parameter Name | Description |
|---|---|
| container | Target container |
| componentType | Component type |
Returns
Returns a NodeComponent of the specified type, or null if none exists.
GetNodeComponent<T>(INodeComponentContainer)
Description
Get a NodeComponent by specifying its type.
Type Parameters
| Type Parameter Name | Description | Type Constraints |
|---|---|---|
| T | Component type |
|
Parameters
| Parameter Name | Description |
|---|---|
| container | Target container |
Returns
Returns the NodeComponent found, or null if not found.
GetNodeComponent(Node, Type)
Description
Get a NodeComponent by specifying its type.
Parameters
| Parameter Name | Description |
|---|---|
| node | Target node |
| componentType | Component type |
Returns
Returns a NodeComponent of the specified type, or null if none exists.
GetNodeComponent<T>(Node)
Description
Get a NodeComponent by specifying its type.
Type Parameters
| Type Parameter Name | Description | Type Constraints |
|---|---|---|
| T | Component type |
|
Parameters
| Parameter Name | Description |
|---|---|
| node | Target node |
Returns
Returns the NodeComponent found, or null if not found.