2D Grid Unit Not Appearing on StartTile

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By floatingdev

I am trying to adapt this tutorial to a concept I am working on,
https://godottutorials.pro/godot-strategy-game-tutorial/

I’m building from scratch so I only have a MainScene, Tiles and UI scenes and the Map, Tile and UnitData scripts.

In my map script, I test for start tile, which is checked for a single tile on the grid, and then call a place unit method:

func _ready ():

# when we're initialized, get all of the tiles
allTiles = get_tree().get_nodes_in_group("Tiles")

# find the start tile and place the Base building
for x in range(allTiles.size()):
	if allTiles[x].startTile == true:
		place_unit(allTiles[x], UnitData.BazookMeka.iconTexture)

func place_unit (tile, texture):

tilesWithUnits.append(tile)
tile.place_unit(texture)

This calls a method in the Tile script:

func place_unit (tile, texture):

tilesWithUnits.append(tile)
tile.place_unit(texture)

It is the same that is used to place the initial “base” texture in the tutorial, which is described at the very beginning of part 2 of the tutorial.

I just get a map with no unit on it, no runtime errors. What am I missing?