Search Unity

Tilemaps possible within the UI system?

Discussion in 'UGUI & TextMesh Pro' started by Doghelmer, May 17, 2021.

  1. Doghelmer

    Doghelmer

    Joined:
    Aug 30, 2014
    Posts:
    120
    I was hoping to place a tilemap into a UI canvas for the purpose of drawing a tiled world map. It seems that this is not possible using Unity's Tilemap system (unless I'm missing something?). Is there a best practice method for accomplishing something like this within the UI system? Simply placing a bunch of UI Images next to each other in a grid wouldn't really be a feasible solution due to the number of images that would be required.
     
  2. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    1,096
    The UGUI way of achieving this is placing a lot of sprites next to each other (either with grid layout group, by hand, with help of a distibution tool or by a custom script).
    I wonder why you want to do this in the ui...
    If you just want to display some non-UI stuff inside a UI control you can render it into a render texture and display it wih the
    Raw Image
    component.