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

UI Elements Runtime. Can't get started. What am I doing wrong?

Discussion in 'UI Toolkit' started by TheGabelle, Aug 5, 2020.

  1. TheGabelle

    TheGabelle

    Joined:
    Aug 23, 2013
    Posts:
    242
    I've created a new project to explore the runtime UI Elements. I am following the getting started google doc found here.

    I have these packages installed:
    packages.PNG

    The first step reads: "From the menu, select GameObject > UI Toolkit > UI Document."
    I do not have that option:
    Screenshot (98).png

    I don't have the option to manually create a Panel Settings asset either:
    Screenshot (99).png
    What am I missing?
     
  2. AlexandreT-unity

    AlexandreT-unity

    Unity Technologies

    Joined:
    Feb 1, 2018
    Posts:
    358
  3. JuliaP_Unity

    JuliaP_Unity

    Unity Technologies

    Joined:
    Mar 26, 2020
    Posts:
    696
    Hello, if I'm seeing correctly you don't have the UI Toolkit package, can you confirm that you followed the steps on the announcement thread to install it? It's about modifying the manifest to contain the reference to the package (currently version 1.0.0-preview.6).
     
  4. TheGabelle

    TheGabelle

    Joined:
    Aug 23, 2013
    Posts:
    242
    I got it working. For anyone else reading this thread with a similar issue:

    I had to manually modify the packages.json to include:
    "com.unity.ui": "1.0.0-preview.3"

    When I restarted Unity there was an error saying something about a duplicate dll:
    UnityEngine.UIElementsModule.dll

    I located the dll in /ProjectName/Library/ScriptAssemblies/ and moved it into a directory outside of the Unity project, relaunched, and it worked. One error popped up, but it cleared without further issue.