GetComponent<T>()
Returns the component of type T if the GameObject of the tile map has one attached, null if it doesn't.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: UnityEngine.Tilemaps
- Assembly: UnityEngine.TilemapModule
public T GetComponent<T>()
Returns
Type | Description |
|---|---|
| T | The Component of type T to retrieve. |