Search Unity

: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:
    780
    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.