Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more..
    Dismiss Notice
  3. Dismiss Notice

Question Dynamic Created Tile

Discussion in '2D' started by scossgrove, Apr 13, 2023.

  1. scossgrove

    scossgrove

    Joined:
    Jan 6, 2016
    Posts:
    23
    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}
     
    Last edited: Apr 13, 2023
  2. karderos

    karderos

    Joined:
    Mar 28, 2023
    Posts:
    376
    post your code
     
  3. scossgrove

    scossgrove

    Joined:
    Jan 6, 2016
    Posts:
    23
    Sorry All... User Error. I counted the tiles wrongly.