Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug USS auto-creating - default value error

Discussion in 'UI Toolkit' started by LinaEagle, Aug 19, 2020.

  1. LinaEagle

    LinaEagle

    Joined:
    Mar 15, 2018
    Posts:
    6
    There is an issue I found during generating USS files from UIBuilder. If you choose inlined style default value after editing like
    width: auto; (when property is highlighted with bold font),
    the property extracted to .uss this way:
    width: ;
    which is parsed incorrectly with an error

    StyleSheet import: type=Syntax, code=None file=Assets/Resources/test.uss Line 7, Column 13: An unexpected error occurred...

    In this case you have to edit .uss manually to fix an error.

    unity version 2019.4.7
    com.unity.ui.runtime 0.0.4-preview
    com.unity.ui.builder: 1.0.0-preview.3
     
  2. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
    LinaEagle likes this.
  3. LinaEagle

    LinaEagle

    Joined:
    Mar 15, 2018
    Posts:
    6
    Yes, I see, thank you!