Search Unity

Are there any plans to add features like web frameworks?

Discussion in 'UI Toolkit' started by mutsuyuki, Sep 28, 2021.

  1. mutsuyuki

    mutsuyuki

    Joined:
    Apr 16, 2015
    Posts:
    15
    I'm starting to use UIToolkit, I like it because it's easier to layout than uGUI for me.
    However, I feel that it lacks a lot of features compared to recent web frameworks (like React, vue..).
    I would like to ask if there are any plans to officially implement the following features.

    1. Display conditions in uxml.
    Code (psuedo uxml):
    1.  
    2. <if codition="isShow">
    3.   <Label text="test" />
    4. </if>
    5.  
    2. Looping of elements in uxml.
    Code (psuedo uxml):
    1.  
    2. <each target="myItem in myArray">
    3.   <Label text="myItem" />
    4. </each>
    5.  
    3. Event triggers in uxml.
    Code (psuedo uxml):
    1.  
    2. <Button onClick="onClickFunction" />
    3.  
    4. Describe uss in the style tag in uxml.
    Code (psuedo uxml):
    1.  
    2. <Style>
    3.   Label {
    4.     width: 100px;
    5.   }
    6. </Style>
    7. <Label text="test" />
    8.  
    5. Data binding at runtime.(ScriptableObject can only be used in Editor, right?)

    I want to know if is there plan to implement it in the future.
    If I can do these things using UIToolkit already now, I would like to know how.
     
unityunity