TryGetComponent
TryGetComponent(string, out Component)
説明
Component型の値を取得する。
パラメーター
| パラメーター名 | 説明 |
|---|---|
| name | 名前。 |
| value | 取得する値。 |
戻り値
指定した名前のパラメータがあった場合にtrue。
TryGetComponent(int, out Component)
説明
Component型の値を取得する。
パラメーター
| パラメーター名 | 説明 |
|---|---|
| id | ID。 |
| value | 取得する値。 |
戻り値
指定した名前のパラメータがあった場合にtrue。
TryGetComponent<TComponent>(string, out TComponent)
public bool TryGetComponent<TComponent>(string name, out TComponent value) ;
説明
Component型の値を取得する。
型パラメーター
| 型パラメーター名 | 説明 | 型制約 |
|---|---|---|
| TComponent | 取得するComponentの型 |
パラメーター
| パラメーター名 | 説明 |
|---|---|
| name | 名前。 |
| value | 取得する値。 |
戻り値
指定した名前のパラメータがあった場合にtrue。
TryGetComponent<TComponent>(int, out TComponent)
public bool TryGetComponent<TComponent>(int id, out TComponent value) ;
説明
Component型の値を取得する。
型パラメーター
| 型パラメーター名 | 説明 | 型制約 |
|---|---|---|
| TComponent | 取得するComponentの型 |
パラメーター
| パラメーター名 | 説明 |
|---|---|
| id | ID。 |
| value | 取得する値。 |
戻り値
指定した名前のパラメータがあった場合にtrue。