Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Can we make color texture turn grey?

Discussion in 'UI Toolkit' started by lang_fox, Jul 24, 2021.

  1. lang_fox

    lang_fox

    Joined:
    May 19, 2014
    Posts:
    13
    Like a button, change style between enabled and disabled.
    ico_shicai1 1.png
     
  2. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    754
  3. lang_fox

    lang_fox

    Joined:
    May 19, 2014
    Posts:
    13
    oh, I mean, with shader or something, turn color texture to grey texture.
     
  4. adamgolden

    adamgolden

    Joined:
    Jun 17, 2019
    Posts:
    1,495
  5. lang_fox

    lang_fox

    Joined:
    May 19, 2014
    Posts:
    13
  6. adamgolden

    adamgolden

    Joined:
    Jun 17, 2019
    Posts:
    1,495
    :(
     
  7. RunninglVlan

    RunninglVlan

    Joined:
    Nov 6, 2018
    Posts:
    179
  8. sebastiend-unity

    sebastiend-unity

    Unity Technologies

    Joined:
    Nov 9, 2015
    Posts:
    183
    Check the -unity-background-image-tint-color USS property.

    If your element is an Image (as in UIElements.Image), you can set the tintColor property directly.
     
    dyamanoha_ likes this.