add_component
Attach a component to an entity in Open 3D Engine by providing the entity ID and component type. Use it to automate editor component assignment.
Instructions
Add a component to an entity.
Args: entity_id: The entity ID to add the component to. component_type: Component type name (e.g. 'Mesh', 'PhysX Dynamic Rigid Body').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | ||
| component_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |