Version: 2017.3 (switch to 2017.4)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ITilemap.GetComponent

public T GetComponent();

Returns

T The Component of type T to retrieve.

Description

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

Generic version. See the Generic Functions page for more details.

Did you find this page useful? Please give it a rating: