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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

:not() doesn't work in uss file.

Discussion in 'UI Toolkit' started by mutsuyuki, Oct 8, 2021.

  1. mutsuyuki

    mutsuyuki

    Joined:
    Apr 16, 2015
    Posts:
    19
    I write code below.

    Code (uss):
    1.  
    2. :not(Label){
    3.   color: blue;
    4. }
    5.  
    But I can't get any effect.
    Can't I use :not() ?
     
  2. antoine-unity

    antoine-unity

    Unity Technologies

    Joined:
    Sep 10, 2015
    Posts:
    737
    Indeed, it's not supported at the moment.
     
  3. mutsuyuki

    mutsuyuki

    Joined:
    Apr 16, 2015
    Posts:
    19
    Thank you for your answer.
    I'm looking forward UIToolkit to be better.