Dynamic Created Tile

Hi,

Currently I am dynamically loading sprites from a directory and then creating a Tile for a Tilemap.
When I set the tile the image is correct however the size of the image on the tile is not. It seems to be half the size of the original image as I am seeing 4 copies of the sprite per tile.

Can anyone help?

– NOTES:

  1. The sprite.pixelsPerUnit is 128
  2. The sprite.bounds.size * sprite.pixelsPerUnit is {128, 128, 12.8}

post your code

Sorry All… User Error. I counted the tiles wrongly.