Search Unity

Bug Serialization issue with ThemeStyleSheets (Unity 2020.2.6 - IL2CPP - UITK runtime preview 14)

Discussion in 'UI Toolkit' started by Midiphony-panda, Apr 1, 2021.

  1. Midiphony-panda

    Midiphony-panda

    Joined:
    Feb 10, 2020
    Posts:
    100
    Hello,

    I saw in another thread that ThemeStyleSheets will come in UITK preview 15 and for the 2021.2 release.

    We took a look on it with Unity 2020.2.6 + UITK preview 14 and had some surprises with built players.

    When using a ThemeStyleSheet in the PanelSettings, everything is fine in the editor and with Mono built players.
    However, there are some serialization issues with ThemeStyleSheets in built players when the scripting backend is set to IL2CPP (and only IL2CPP).
    We get the following errors (different serialization layout when loading) making it unloadable :
    ThemeStyleSheetErrorsWIthBuiltPlayer.png

    (case report 1325966 on fogbugz, reproduced in a blank project)

    (this might be fixed in the next package release or in Unity 2021.2, but I'm sharing this just in case :D)
     
  2. martinpa_unity

    martinpa_unity

    Unity Technologies

    Joined:
    Oct 18, 2017
    Posts:
    101
    Thank you for the bug report, this is definitely something that needs fixing... if it's not already ;)
     
  3. steinbitglis

    steinbitglis

    Joined:
    Sep 22, 2011
    Posts:
    209
    Has this been fixed in preview 16 or 17 ?
     
  4. hugobd

    hugobd

    Unity Technologies

    Joined:
    May 14, 2018
    Posts:
    123
    Hi @steinbitglis ,

    Here's the issue tracker for this bug. It is currently in the process of being backported to 2021.2, 2021.1, and 2020.3.
     
    steinbitglis likes this.
unityunity