Search Unity

How to make a repeat pattern inside a "content size fitter" UI?

Discussion in 'UGUI & TextMesh Pro' started by Avalin, Feb 20, 2019.

  1. Avalin

    Avalin

    Joined:
    Oct 12, 2018
    Posts:
    98
    I want to use the attached image In a dynamic manner. Had it just been grey it would be no problem, but since a pattern inside (the squares) should repeat themselves, it feels a bit more tricky. I can seemingly only make them scale with the grid/vertical/horizontal canvas group which looks funky in a bad way. Has anyone dealt with similar issue and fixed it?
     

    Attached Files:

  2. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    1,096
    you could do it by splitting up your frame into two images. One is the border only and Sliced (the inner part is transparent) and one behind (in the hierarchy above) is the background which is "Tiled".
     
    Avalin likes this.