# 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)

public static T GetNodeComponent<T>(this INodeComponentContainer container) ;

### Description

Get a NodeComponent by specifying its type.

### Type Parameters

Type Parameter Name | Description | Type Constraints
--- | --- | ---
T | Component type | class

### Parameters

Parameter Name | Description
--- | ---
container | Target container

### Returns

Returns the NodeComponent found, or null if not found.

## GetNodeComponent(Node, Type)

public static NodeComponent GetNodeComponent(this Node node, Type componentType) ;

### 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)

public static T GetNodeComponent<T>(this Node node) ;

### Description

Get a NodeComponent by specifying its type.

### Type Parameters

Type Parameter Name | Description | Type Constraints
--- | --- | ---
T | Component type | class

### Parameters

Parameter Name | Description
--- | ---
node | Target node

### Returns

Returns the NodeComponent found, or null if not found.