Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Why its so hard to find UI Toolkit Documentation?

Discussion in 'Documentation' started by Nikolai-Games, Apr 16, 2021.

  1. Nikolai-Games

    Nikolai-Games

    Joined:
    Sep 14, 2019
    Posts:
    6
    I'm currently experimenting with UI Toolkit. And I created some buttons and stuff.
    Additionally I created a UIDocument and assigned the uxml file.
    It works, but how to connect events with the button?

    I'm using Unity 2020.2.2f1.

    I got this link:
    https://docs.unity3d.com/Packages/com.unity.ui.builder@1.0/manual/uib-getting-started-documents.html
    and this link:
    https://docs.unity3d.com/2019.4/Documentation/Manual/UIE-Events.html
    with lots of code-snippets, that are unclear to me how to use.

    I got some youtube videos.

    googling whole day.

    But its still unclear to me.

    Edit:
    This project helps a bit:
    https://github.com/Unity-Technologies/UIToolkitUnityRoyaleRuntimeDemo
     
    Last edited: Apr 17, 2021
  2. KevinWardProf

    KevinWardProf

    Joined:
    Jan 22, 2019
    Posts:
    3
    I'm having the same issue, particularly if I'm trying to use it during runtime on Unity 2020.3.3f1
    I wish the documentation was as laid out as with other base classes like Vector3, but for the most part without any examples I can't really get around issues I'm having. Heck all I really want to do is change some label text, but cannot seem to get the right Query.
     
    alinajosephclass and Protagonist like this.
  3. KevinWardProf

    KevinWardProf

    Joined:
    Jan 22, 2019
    Posts:
    3

    Any videos you could share?
     
  4. stefania_unity

    stefania_unity

    Unity Technologies

    Joined:
    Jan 27, 2021
    Posts:
    12