AddComponent
AddComponent(GameObject, Type)
public Component AddComponent(GameObject gameObject, Type type) ;
説明
Componentを追加する。
パラメーター
| パラメーター名 | 説明 |
|---|---|
| gameObject | GameObject |
| type | Componentの型 |
戻り値
Component
Componentを追加する。
| パラメーター名 | 説明 |
|---|---|
| gameObject | GameObject |
| type | Componentの型 |
Component