Search Unity

[Question] Can I get tile data from a Tile Pallet?

Discussion in '2D' started by Disthron, May 15, 2018.

  1. Disthron

    Disthron

    Joined:
    Aug 21, 2015
    Posts:
    10
    Hi, I'm trying to make a random map generator using the Unity tile map system. I wanted to be able alter a tile on the tilemap by pulling the tile reference from the tile pallet and placing it on the map. Is there a way to do this? I couldn't seem to figure it out so for now I've just got a list with the tiles in it. It's working fine for now but I'd rather have easy access to the full tile set.

    Any help would be appreciated.

    here's a shot of what I have so far, in case you were interested.
     
  2. spryx

    spryx

    Joined:
    Jul 23, 2013
    Posts:
    557
    Mine does this by translating a virtual map into a tile map. I'm not sure if this is similar to what you are asking for or not? Either way, I first build a map in memory and then use a map translator to convert it to a visual map:

    Capture.PNG

    P.S : Your screenshot is broken?