Search Unity

Foldout .text property is not settable from UXML

Discussion in 'UIElements' started by aybe, Jan 21, 2019.

  1. aybe

    aybe

    Joined:
    May 24, 2015
    Posts:
    99
    Setting a Foldout's text requires you to query the tree for that instance then assign the text to the property, i.e. it cannot be done from UXML alone.

    (its traits class does not handle that attribute)

    (and its declaration in schema is incomplete, lacks text, value, etc)

    Thanks !
     
  2. jeanfrancois_unity

    jeanfrancois_unity

    Unity Technologies

    Joined:
    Oct 24, 2018
    Posts:
    4
    It seems the Foldout is missing the support for the different UXML attributes. This seems to be a bug.
    Can you log an issue for better follow-up ? Thank you !
     
  3. aybe

    aybe

    Joined:
    May 24, 2015
    Posts:
    99
  4. CyRaid

    CyRaid

    Joined:
    Mar 31, 2015
    Posts:
    80
    Has this been fixed? The ticket shows closed, but still not working as of 2019.1.3f1
     
  5. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    221
    This was fixed a bit late so it will only be present in 2019.3. It might be backported to 2019.2 but that is not guaranteed.