Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Unity UI Offset sliced/tiled UI image

Discussion in 'Unity UI (uGUI) & TextMesh Pro' started by gumboots, Feb 6, 2019.

  1. gumboots

    gumboots

    Joined:
    May 24, 2011
    Posts:
    268
    Hi all,

    I have a bunch of UI boxes that all use a tiled sprite as the border. However when they're stacked on top of each other, it's easy to see repetition. I don't suppose anyone has come up with a way to offset the border so I can break it up a bit?

    Thanks!
     
  2. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    659
    so, you are asking how to move the sprites a bit? I would just add a very little random jitter to all anchors... but it depends how you set up your ui.
     
  3. gumboots

    gumboots

    Joined:
    May 24, 2011
    Posts:
    268
    Thanks for the response! No, I'm actually wondering how to offset the borders of a sliced/tiled sprite along their axis. Similar to a marching ants effect. However I don't want it for animation, I want it so the boxes don't look identical to each other.