Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Color gradient for buttons

Discussion in 'UI Toolkit' 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:
    358
    Hi! You need to create a texture with your gradient and assign it to the
    background-image
    style property.
     
    MurphyMurph_21 and nalincy like this.