AddComponent
AddComponent(GameObject, Type)
Description
Add component.
Parameters
| Parameter Name | Description |
|---|---|
| gameObject | GameObject |
| type | Component type |
Returns
Component
AddComponent<Type>(GameObject)
Description
Add component.
Type Parameters
| Type Parameter Name | Description | Type Constraints |
|---|---|---|
| Type | Component type |
Parameters
| Parameter Name | Description |
|---|---|
| gameObject | GameObject |
Returns
Component