Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetComponent<T>()

Returns the component of type T if the GameObject of the tile map has one attached, null if it doesn't.
Read time 1 minuteLast updated 6 days ago

Definition

public T GetComponent<T>()

Returns

Type

Description

TThe Component of type T to retrieve.