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

Colo(u)r picker & Gridview

Discussion in 'UI Toolkit' started by Timboc, Nov 19, 2021.

  1. Timboc

    Timboc

    Joined:
    Jun 22, 2015
    Posts:
    234
    We're in need of both colour pickers & grid view elements - just before we go ahead and make them ourselves I wanted to check if there was any chance they're actively being worked on and have a chance of imminently landing? DMs are open if nothing public and any kind soul wanted to either save us some work or else reassure us that if we want them in the next couple months we'll need to make them ourselves.

    Thanks to the team for all the hard work as ever - still loving UITK.
     
  2. SimonDufour

    SimonDufour

    Unity Technologies

    Joined:
    Jun 30, 2020
    Posts:
    529
    Are you looking for a colour picker in the runtime or editor context?

    There is already a color picker field used in the inspectors (editor only). The API should not change, but it may be refactored at some point to get better performance.

    Regarding the grid view, we know it is an important feature, but with our release cycle (alpha, beta, release), there is more than a few months before you have something "stable" to use.
     
    Timboc likes this.
  3. Timboc

    Timboc

    Joined:
    Jun 22, 2015
    Posts:
    234
    Apologies I should have mentioned- yes both for runtime. Thank you for the reply - much appreciated.
     
  4. sharkbitgamesdev

    sharkbitgamesdev

    Joined:
    Dec 2, 2019
    Posts:
    18
    This github project has a color picker for runtime and other examples of other common necessities one might want to check out.
     
  5. Timboc

    Timboc

    Joined:
    Jun 22, 2015
    Posts:
    234
    Thanks @sharkbitgamesdev - I had actually come across that but I'm glad you posted it here for others. CPU-based and missing features we'd want so not right for us but definitely a useful reference, thank you.
     
  6. SimonDufour

    SimonDufour

    Unity Technologies

    Joined:
    Jun 30, 2020
    Posts:
    529
    @Timboc We recently added a multi-colum component. It is still not supported by the UI builder, and the documentation may be sparse if there is any, but if you are adventurous you could potentially use that as a stepping stone for your development.
     
    Timboc likes this.
  7. Timboc

    Timboc

    Joined:
    Jun 22, 2015
    Posts:
    234
    Thanks @SimonDufour - super interested in checking this out. Is it available in 2021.2 by any chance (or would I need to be on 2022)?
     
    Last edited: Nov 24, 2021
  8. SimonDufour

    SimonDufour

    Unity Technologies

    Joined:
    Jun 30, 2020
    Posts:
    529
    AFAIK It should be in 2021.2, but I could be mistaken.
     
  9. Midiphony-panda

    Midiphony-panda

    Joined:
    Feb 10, 2020
    Posts:
    235
    Inspected as much as I could UnityEngine.UIElementsModule in Unity 2021.2, but haven't found any Grid/MultiColumnView or element :\

    Haven't checked in 2022.1
     
    Timboc likes this.
  10. Timboc

    Timboc

    Joined:
    Jun 22, 2015
    Posts:
    234
    @SimonDufour it would be supeeeeeer awesome if the MultiColumnListView just released in 2022.1a16 could be backported to 2021.2!
     
  11. SimonDufour

    SimonDufour

    Unity Technologies

    Joined:
    Jun 30, 2020
    Posts:
    529
    I thought it landed before the 2021.2 cutoff. We are not allowed to enter a new feature at this stage. Sometimes missing parts could be qualified as bug but in this case it would be hard to argue!
     
    Timboc likes this.
  12. Timboc

    Timboc

    Joined:
    Jun 22, 2015
    Posts:
    234
    Appreciate the reply Simon - thank you. If I understand correctly, all these new features including e.g. the new vector drawing api, input textfield improvements, selectable labels etc will likely never reach 2021?
    That's a real shame given 2021 LTS isn't even out yet. Or did it just miss 2021.2 and might make LTS?

    Rather than write from scratch I'll see if we can port the MCLV code directly - unless you know off the top of your head any engine features that would be missing for us to be able to do so?
     
  13. SimonDufour

    SimonDufour

    Unity Technologies

    Joined:
    Jun 30, 2020
    Posts:
    529
    Yes : all these features landed in 2022.1, and they won't be in the 2021 LTS. No new features are introduced in the LTS because they prioritize the stability and maintenance of the engine, unless there is an exception. A lot of features landed recently because any new development is now targeting 2022.2

    There is no major changes that would affect this, but there could be a multiple of smaller changes that could pose an issue. Even changes in the styles could be meaningful. You can look in the UI debugger for the missing variables.
     
    Midiphony-panda and Timboc like this.
  14. Timboc

    Timboc

    Joined:
    Jun 22, 2015
    Posts:
    234
    The clarity is very helpful, thanks again.
     
    Midiphony-panda likes this.
  15. Timboc

    Timboc

    Joined:
    Jun 22, 2015
    Posts:
    234
    Sorry to bother you again @SimonDufour but I went to start this process and realised the version on 2022.1.0a16 doesn't seem to be available via the package registry - at least so far as I can tell? Is there (or might there be soon) a way for me to access the source as with previous versions?