Search Unity

Color gradient for buttons

Discussion in 'UIElements' started by nalincy, May 31, 2019.

  1. nalincy

    nalincy

    Joined:
    May 11, 2019
    Posts:
    2
    Hello! I am new to unity. I am having a few buttons on canvas. I want to make color gradient for the buttons.
    Please suggest me some pointers to make color gradient varying between two colors for UI buttons.
     
  2. AlexandreT-unity

    AlexandreT-unity

    Unity Technologies

    Joined:
    Feb 1, 2018
    Posts:
    24
    Hi! You need to create a texture with your gradient and assign it to the
    background-image
    style property.
     
    nalincy likes this.