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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more..
    Dismiss Notice
  3. Dismiss Notice

Feedback Just abandoned UI Toolkit on project

Discussion in 'Editor & General Support' started by dracolytch, Sep 21, 2022.

  1. dracolytch

    dracolytch

    Joined:
    Jan 1, 2016
    Posts:
    19
    Hey all,

    I just had to abandon the UI Toolkit in favor of the old canvas approach on a project. I like the premise, but the visual discrepancies between the editor and the actual game, plus the cycle time between making a change and seeing it, ended up just too much of a hassle for actual application. I look forward to further advancements, but as it is, this just isn't ready for primetime.

    ~D
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,769
    Agreed. Even Unity admits it in their docs:

    From: https://docs.unity3d.com/Manual/UIElements.html

    Note: Unity recommends you to use UI Toolkit for your new UI development projects. However, Unity UI (uGUI) and IMGUI are appropriate for certain use cases, and are required to support deprecated projects. For more information, see the Comparison of UI systems in Unity.

    uGUI and IMGUI have the important advantage that they Just Work(tm), plus they are dead simple.
     
  3. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,895
    In the top right there's a setting for that:
    upload_2022-9-22_14-14-8.png

    I don't get this. You can make changes to your visual tree assets and they apply immediately, even in play mode.
     
    nehvaleem likes this.
  4. dracolytch

    dracolytch

    Joined:
    Jan 1, 2016
    Posts:
    19
    The visual discrepancies were not just colors, but object sizes as well, something I'd not seen before. The layout in the editor window was completely different than the game view. It was also having issues matching the size of my game window, even when I explicitly instructed it as to what size that should be.

    Glad to hear someone isn't having the cycle time issues, but I absolutely was. I'd make a change, say toggling the visibility of an object, and there'd be a delay with a game-mode blink before the change would show in edit or play mode. Interestingly, this was between the editor and the game window... If I used a script to change the visibility of an item in play mode, there was no blink or refresh.
     
  5. altepTest

    altepTest

    Joined:
    Jul 5, 2012
    Posts:
    1,052
    The trick to use this UI kit is to think like a web designer not like an illustrator. I'm not saying this Ui is amazing but is better than the default solution. BUT and BUT two times. you need to think how it looks in your head, plan on a piece of paper. This is basically a HTML5 and CSS hidden under new names.