Tilemap.GetObjectToInstantiate

Switch to Manual
public GameObject GetObjectToInstantiate (Vector3Int position);

Parameters

positionThe position of the Tile on the Tilemap.

Returns

GameObject Returns the GameObject to be instantiated by the Tile at the position.

Description

Gets the GameObject which will be instantiated by a tile given the XYZ coordinates of a cell in the tile map.