Search Unity

Background repeat?

Discussion in 'UIElements' started by rastlin, Jul 8, 2019.

  1. rastlin

    rastlin

    Joined:
    Jun 5, 2017
    Posts:
    100
    So yeah, when can we expect to be able to control background repeat patterns? Similarly to repeat-x/repeat-y properties of css background-repeat.

    It seems pretty easy to implement, it just require some uv calculation for rendered texture depending on the setting. The current options available for background cropping produces really terrible results on non-fixed rects.
     
  2. jonathanma_unity

    jonathanma_unity

    Unity Technologies

    Joined:
    Jan 7, 2019
    Posts:
    40
    Hi rastlin,

    Background repeat would be a nice feature to have indeed.
    However, it won't be available in the near future but is on the road map.

    As a side note, UIElements store textures into an atlas to provide a fast rendering which then makes background repeat not straightforward to add.