# ActionComponent

This is a node component that performs processing that can be completed in an instant.
It is used for calling members, calculating data, etc.

## Behavior when set to node

### Action

Action

The process is executed when the node becomes active.

### Compute

Compute

Processing is executed when data output is required. Only ActionComponents with output DataPorts can be used.

### BehaviorTree

BehaviorTree

Performs processing when a node becomes active and immediately returns results to the parent node.

Additional properties

Property name | Type | Description
--- | --- | ---
Result | `InputField<bool>` | Specifies the result to return to the parent node.

#### Services

The process is executed when the node becomes active.

Additional properties

Property name | Type | Description
--- | --- | ---
Methods | `CallMethods` | Specifies the methods to run. Nothing Do not run OnActivated Run only once when activated. OnUpdate Execute every frame. OnDeactivated Run only once when deactivated.

### State

State

The process is executed when the node becomes active.

Additional properties

Property name | Type | Description
--- | --- | ---
Methods | `CallMethods` | Specifies the methods to run. Nothing Do not run OnActivate Run only once when activated. OnUpdate Execute every frame. OnDeactivated Run only once when deactivated.

## Script generation

Due to the script generation function, ActionComponent is used for the following member access scripts.

- Get field value
- Set field value
- Get property value
- Set property value
- method call

It may be other than ActionComponent depending on the field type etc.
For details, please refer to Script generation.