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

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

Discussion in 'UI Toolkit' started by Kazko, Jan 15, 2021.

  1. Kazko

    Kazko

    Joined:
    Apr 2, 2014
    Posts:
    82
    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!
     
  2. ShadowAngel

    ShadowAngel

    Joined:
    Aug 7, 2012
    Posts:
    12
    Hey, having all same issues here.
    Using:
    Unity 2020.2.1f1
    UI Toolkit 1.0.0-preview.13
     
    M_R_M and Kazko like this.
  3. BenWoodford

    BenWoodford

    Joined:
    Sep 29, 2013
    Posts:
    116
    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...
     
    Last edited: Oct 5, 2022