Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question App UI (unity's ui toolkit framework)

Discussion in 'UI Toolkit' started by znzr, Feb 6, 2024.

  1. znzr

    znzr

    Joined:
    Jun 27, 2017
    Posts:
    3
  2. floriankorsakissok

    floriankorsakissok

    Joined:
    Jul 19, 2017
    Posts:
    30
    I was also surprised to stumble upon this by luck - why wasn't there any official news about this? The package is not in preview (is it?) so it seems like a major release of functionality went silent. I'd be interested to know why, because right now it leaves me wondering if it's production-ready or not.

    In any case, that framework looks amazing Can't wait to use it.
     
  3. daniel414

    daniel414

    Joined:
    May 13, 2020
    Posts:
    14
    Thanks for posting, I certainly wouldn't have found it otherwise. That looks really interesting.
    I am wondering why this is a seperate package from the UI Toolkit, because it seems this package provides features that are on the roadmap for UI Toolkit, such as Localization or World space canvas! (according to the changelog at least)
     
    floriankorsakissok likes this.
  4. spakment

    spakment

    Joined:
    Dec 19, 2017
    Posts:
    96
    just found it's existance after reading the release notes for 2022.3.19, took it for a quick spin, really interesting project, targetted at React developers, with some great components and ways of keeping everything reactive and includes an implementation of the Redux data binding system.

    No way to use the UI Builder visual editor as far as I can tell, everything needs to be architectured via code. I'm guessing its it's own package as its so focused on providing a React / Redux experience it would create a lot of friction for your average UI Toolkit user...
     
  5. spakment

    spakment

    Joined:
    Dec 19, 2017
    Posts:
    96
    @benoitd_unity do you know if App UI elements will ever be usable in the UI Builder? Or are they going to just be their own thing?
     
  6. benoitd_unity

    benoitd_unity

    Unity Technologies

    Joined:
    Jan 2, 2018
    Posts:
    337
    Without specifically addressing the AppUI use case, we want to make the UI Library extensible so it can display other sources of controls, such as AppUI.
     
  7. znzr

    znzr

    Joined:
    Jun 27, 2017
    Posts:
    3
    Would it be smart to use AppUi already or are there still many changes in its roadmap?I was working on a simple ui framework myself, but rather wouldnt reinvent the wheel:)
     
  8. lucvovan

    lucvovan

    Unity Technologies

    Joined:
    Nov 22, 2014
    Posts:
    13
    Hi all!
    Wow this was discovered fast. It was intended as an internal release.
    We won’t be giving any external support on it and it’s a use it at your own risk.

    That being said, I think it’s awesome to see people interested in this framework!

    cheers and best of luck <3
     
  9. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,797
    MaskedMouse and lclemens like this.
  10. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 5, 2024
    Posts:
    618
    I'm not sure what did you guys expect exactly, but it is publicly used in the
    Muse Behavior
    .

    After hyping that AI abomination it was really thought it goes unnoticed?
     
  11. thelebaron

    thelebaron

    Joined:
    Jun 2, 2013
    Posts:
    882
    Even though this is a use at your own risk, I hope at least that this is continued to be updated, been hoping for quite a while for something like this for Unity.
     
  12. BackgroundMover

    BackgroundMover

    Joined:
    May 9, 2015
    Posts:
    245
    At least with the sample projects imported, the controls exist in the UI Builder under Library, Project, Custom Controls
     
  13. pzoghbi

    pzoghbi

    Joined:
    Oct 8, 2019
    Posts:
    28
    What do you mean? It's an official release.
    According to https://docs.unity3d.com/Manual/upm-lifecycle.html, released packages have been verified and "undergone thorough testing." Since the package is no longer in the "pre-" phase, claiming it as an internal release makes no sense.
     
  14. spakment

    spakment

    Joined:
    Dec 19, 2017
    Posts:
    96
    @BackgroundMover what version are you using to see that? Running 2022.3.17 I have a few of the sample templates showing but they're all "broken" templates
     
  15. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,937
    Yeah I thought that might be the case when I saw the screenshot said "CD Projekt Red". :p
     
  16. annulusgames

    annulusgames

    Joined:
    Sep 24, 2020
    Posts:
    45
    From the documentation and extensive samples, it seems like the AppUI package was developed with general users in mind.

    At least this package has features that many users will need. This should be officially supported, not just for internal use.
     
  17. D-DutchDave

    D-DutchDave

    Joined:
    May 4, 2018
    Posts:
    40
    This looks amazing.
     
    PixelBlastGames likes this.
  18. D-DutchDave

    D-DutchDave

    Joined:
    May 4, 2018
    Posts:
    40
    That said, it seems like the package is not importing correctly in Unity 2022.3.15f1.

    .tss and .uss assets don't seem to get imported, the Unity.AppUI.MVVM namespace seems broken too.

    Anyone had better luck?
     
  19. znzr

    znzr

    Joined:
    Jun 27, 2017
    Posts:
    3
    in 2023.3.0b10 it seems to work without problems (so far) in an earlier version (b01 if i remember good), there were some minor issues
     
  20. PixelBlastGames

    PixelBlastGames

    Joined:
    Mar 15, 2024
    Posts:
    9
    The .tss and .uss files are UI-Toolkit files, I won't see why they could not be imported if UI-Toolkit supports this Unity version. From my understanding of the package doc you have to choose the right theme in the Theme dropdown of UI Builder to display correctly elements. And to use them in your scene you need to use the App UI.tss file in your PanelSettings.

    Looking at the samples, I realized assembly definition files for extra features - such as MVVM - have their auto-reference property set to false. That means you need to create your own assembly definition file and reference explicitly the App UI features inside. That's actually a good idea IMO, you don't pollute your project with unnecessary code. The provided samples give an idea about how to setup your project.

    I wish the package would come with its own Unity Project Template from the Hub to kickstart an App UI application, maybe it is on the roadmap? :p
     
  21. D-DutchDave

    D-DutchDave

    Joined:
    May 4, 2018
    Posts:
    40
    I opened it up in Unity 6 Beta and everything was working as intended so I'm just gonna assume it was some version related issue.


    I agree, I think it's a good thing. Might be worth adding to the documentation, though.
     
    znzr and PixelBlastGames like this.
  22. jiaoshiguan

    jiaoshiguan

    Joined:
    Jun 25, 2022
    Posts:
    9
    I love this package! Its integration with MVVM and Redux is exciting.

    I really want to apply it to the project, but I am worried that it has fatal problems that will be encountered in the middle or late development, could the official provide some more information about this package for reference.

    Please tell us what are the main risks of using it now, I really love this design, but I couldn't help worrying~
     
    PixelBlastGames likes this.
  23. jiaoshiguan

    jiaoshiguan

    Joined:
    Jun 25, 2022
    Posts:
    9
    Thank you for your blessing, and if you can give some reference suggestions, it would be better~~~
     
  24. jiaoshiguan

    jiaoshiguan

    Joined:
    Jun 25, 2022
    Posts:
    9
    What does [dt] mean in the package name, Developer Tools?
     
    LooperVFX likes this.
  25. AbsoluteTundra

    AbsoluteTundra

    Joined:
    Sep 25, 2013
    Posts:
    9
    Did anyone get the worldspace ui document script working in XR?

    I'm using the example scene included with XR Interaction package but it doesn't work out of the box.
     
  26. jiaoshiguan

    jiaoshiguan

    Joined:
    Jun 25, 2022
    Posts:
    9
    Have you solved this problem? I have a solution that uses XRITK to make UIToolkit run in XR to interact normally. However, there is a problem that the scroll related processing does not work.

    You can read the code below to understand how it works
     

    Attached Files:

  27. BackgroundMover

    BackgroundMover

    Joined:
    May 9, 2015
    Posts:
    245
    Edit- PixelBlastGames' post covered this before I posted
    If you're trying to build app-ui components in the UI Builder and they look broken, like zero size, check which Theme the builder is using in the top right. If its the Built In default runtime theme, try switching to one of the App UI themes
     
    Last edited: May 3, 2024
    PixelBlastGames likes this.
  28. BackgroundMover

    BackgroundMover

    Joined:
    May 9, 2015
    Posts:
    245
    Edit: To use the App-UI thtmes in an editor window, use the tss named App UI, not one of the subsequent ones like App UI - Dark - Medium

    Has anyone managed to use this with an Editor Window?
    I'm trying to apply themeing, but I don't know where to set the .tss. Theres no PanelSettings (that I know of) since its an Editor Window. Applying the StyleSheet to the root doesn't seem to be enough.
     
    Last edited: May 3, 2024
  29. D-DutchDave

    D-DutchDave

    Joined:
    May 4, 2018
    Posts:
    40
  30. StefanDu

    StefanDu

    Joined:
    Mar 29, 2020
    Posts:
    3
    Walter_Hulsebos likes this.
  31. PixelBlastGames

    PixelBlastGames

    Joined:
    Mar 15, 2024
    Posts:
    9
    @StefanDu I think it is just from code.
    It would be so nice to be able to contribute to this package to improve it (such as the UXML support for binding a list of elements in this case).
     
  32. TomTrottel

    TomTrottel

    Joined:
    Aug 16, 2014
    Posts:
    21
    Its funny, I tried to get the List View to act as a Grid View, but since I do not have the full source, I could not set the height line and the lazy item loading mechansim accordingly. Thus I found ppl here talking about that Grid View inside the App UI. Will try to get it working, but not sure if those Controls work in Custom Inspectors, but they should, or ?
     

    Attached Files:

  33. highcore

    highcore

    Joined:
    Jun 4, 2021
    Posts:
    5
    It's very strange to see FOR INTERNAL UNITY USE ONLY on this package.
    Аfter all, this is what working with the UI should look like. And now I have to write my own implementation of mvvm, navigation, etc.
     
  34. PixelBlastGames

    PixelBlastGames

    Joined:
    Mar 15, 2024
    Posts:
    9
    @TomTrottel App UI components would work in custom inspector for sure. As soon as you use UITK in your inspector you can use App UI ones from what I have observed (all Muse tools are custom Editor windows and they use App UI stuff)
     
  35. TomTrottel

    TomTrottel

    Joined:
    Aug 16, 2014
    Posts:
    21
    yeah I got it working two days ago. problem was that you have to register the makeitem and binditem delegates with the underlying listview of the ui app gridview. (which is clearly stated in the docs, but I oversaw it).
     

    Attached Files:

    PixelBlastGames likes this.
  36. PixelBlastGames

    PixelBlastGames

    Joined:
    Mar 15, 2024
    Posts:
    9
    @highcore I think the disclaimer is a bit confusing too, it seems Unity doesn't want to accept external feedbacks nor being responsible of any bug encountered by external users. I would not say "Internal Usage only" but just "Use at your own risks" at this point.