Version: 2017.2
public T GetComponent ();

戻り値

T The Component of type T to retrieve.

説明

Returns the component of type T if the GameObject of the tile map has one attached, null if it doesn't.

ジェネリック版。詳細については Generic Functions を参照してください。