Search Unity

Unity UI "Advanced" 9-slice?

Discussion in 'UGUI & TextMesh Pro' started by SparrowGS, Jan 24, 2019.

  1. SparrowGS

    SparrowGS

    Joined:
    Apr 6, 2017
    Posts:
    2,536
    I don't know what to call it, but is there a solution in the likes of 0-slice for images like this?
    I want to be able to stretch it like I would a 9-slice.

    or can 9-slice can do it and I'm too stupid to figure out where to place the anchors? :D
     

    Attached Files:

  2. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    1,096
    This is nothing you can do by default with a sprite.
    But it is like a tile map. maybe you can reuse some existing tile map project for your needs...
     
  3. SparrowGS

    SparrowGS

    Joined:
    Apr 6, 2017
    Posts:
    2,536
    Thanks for the answer.
    I think if I flip the extension part(make it go in instead of out), I can use a 9 slice for it then, it even fits better to my UI design, gonna test it when I get home.