Trying to read value of type Color while reading a value of type Function

Hi, in the UI Builder, almost every click on an element in builder hierarchy result in errors in console:

“Trying to read value of type Color while reading a value of type Function”
(no other info provided)

Also, some elements produce “ArgumentException: Value is not present in the list of possible values” (note the blank space after ‘Value’)
from UIElements.PopupField’1[T].SetValueWithoutNotify()

Other UI Builder issues:

  • prompt to save document right after opening it (as if it was not saved when previously closed)
  • frequent incorrect display of elements (for example different alignment and/or not respecting margins/paddings, etc.) - these redraw into correct form after clicking on them
  • generally it feels a bit buggy and broken at times

Unity 2020.2.1f1
UI Toolkit 1.0.0-preview.13
UI Builder 1.0.0-preview.11

Are these known issues of the current versions or perhaps I have some specific conflicts?
Thanks for info!

Hey, having all same issues here.
Using:
Unity 2020.2.1f1
UI Toolkit 1.0.0-preview.13

2 Likes

I’m also having a similar problem but it’s “Trying to read value of type Color while reading a value of type Keyword”

After some trial-and-error I’ve found it’s due to using (what would be valid CSS) “color: black” or similar in USS…

For me the problem was that my USS had background-color: none and it needed to be background-color: transparent .