Search Unity

Boolean attributes should be lowercase

Discussion in 'UI Toolkit' started by tacman1123, Nov 20, 2020.

  1. tacman1123

    tacman1123

    Joined:
    Sep 14, 2020
    Posts:
    77
    I'm attempting to report this as a bug, but because I have a poor internet connection it takes several minutes to upload a bug report via the system. I will repeat my request that you consider testing every aspect of your software on a slow connection -- it's a really unnecessarily painful experience.

    The bug is small, and probably won't cause an actual problem, but also should be easy to fix and avoid a potential problem.

    The issue is the attribute

    display-tooltip-when-elided="True"

    as a boolean, it should simply be

    display-tooltip-when-elided="true"

    no need to capitalize.

    Code (xml):
    1. <ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
    2.     <Style src="AppStyles.uss" />
    3.     <ui:VisualElement>
    4.         <ui:Label text="Game " display-tooltip-when-elided="True" name="game-label" style="-unity-background-image-tint-color: rgb(209, 117, 28); font-size: 58px; align-items: auto; justify-content: space-around; opacity: 0.8; visibility: visible; color: rgba(200, 55, 55, 255); -unity-font-style: italic;" />
    5.     </ui:VisualElement>
    6.     <ui:Button text="Start Game&#10;" display-tooltip-when-elided="True" name="start-game" view-data-key="game-view-data-key" />
    7. </ui:UXML>
    8.  
     
  2. sebastiend-unity

    sebastiend-unity

    Unity Technologies

    Joined:
    Nov 9, 2015
    Posts:
    184
    Hi, I will look into this, seems simple enough indeed. Thanks for the report!
     
    tacman1123 likes this.