GetComponent<T>()
Returns the component of type T if the GameObject of the tile map has one attached, null if it doesn't.
阅读时间1 分钟最后更新于 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. |