Declaration
func AddComponent(target entity, componentID Type, out var isSuccess bool)
go
Parameters
Input
| Name | Type | Description |
|---|---|---|
| Target | entity | Target Entity |
| Component | Type | Component type ID. Only custom components created by users are supported |
Out
| Name | Type | Description |
|---|---|---|
| Is Success | Bool | Whether the addition is successful. Existing components or non-custom components will fail to be added. |