Search Unity

UI Toolkit file management

Discussion in 'UI Toolkit' started by UniteMage, Oct 1, 2021.

  1. UniteMage

    UniteMage

    Joined:
    Aug 22, 2012
    Posts:
    120
    I am presently studying the UI Toolkit manual... My interest is using custom UI for technical simulations thus I assume the UI will be used for runtime UI..

    Source: https://docs.unity3d.com/Manual/UIElements.html

    File management (ie uxml and uss extensions, etc.) is not clear in the manual (or maybe I missed it). Is there any helpful suggestions on how to organize the folders and the files which I assume it would be in the asset folder but where and how would be the best method for organizing these files for runtime UI.

    Thanks
     
  2. UniteMage

    UniteMage

    Joined:
    Aug 22, 2012
    Posts:
    120
    Addendum to Myself:

    Although this is a better document, managing UI documents as previously mentioned is not clear about file management. Are there special folders like Editor and Resources and other considerations when using the Asset folder....

    Thanks to myself:)
     
  3. UniteMage

    UniteMage

    Joined:
    Aug 22, 2012
    Posts:
    120
    Back in the Overview:
    source: https://docs.unity3d.com/Packages/com.unity.ui.builder@1.0/manual/index.html

    I'll install a newer Unity 2020 and try using this project.

    I am presently using Unity version 2019.4.30f1 Personal which runs quite well on my iMac but the 2020 version is buggy with disappearing labels and it does not runs as smoothly as the 2019.

    Thanks again....
     
  4. UniteMage

    UniteMage

    Joined:
    Aug 22, 2012
    Posts:
    120
    I have a headache :( installing the sample project...
    https://github.com/Unity-Technologies/UIToolkitUnityRoyaleRuntimeDemo

    (1) Installed Version 2020.3.19f1 Personal
    (2) Installed package com.unity.ui.builder
    (3) Tried to install Git URL by following Unity's Instructions:
    (4) Installation Failed:
    (5) Downloaded the zip file.
    Moved package to Asset folder:
    It seemed to load OK by received the following errors:
    Cannot tell which script files to plug in.... Maybe just maybe someone might send a suggestion...
     
  5. antoine-unity

    antoine-unity

    Unity Technologies

    Joined:
    Sep 10, 2015
    Posts:
    780
    The UIToolkitUnityRoyaleRuntimeDemo demo is a full project so you would also need to have a look at its package dependencies if you want to bring into another project: https://github.com/Unity-Technologi...untimeDemo/blob/master/Packages/manifest.json

    It is probably easier to open the UIToolkitUnityRoyaleRuntimeDemo project separately to learn about UI Toolkit and then bring the pieces you need into your own project.
     
  6. UniteMage

    UniteMage

    Joined:
    Aug 22, 2012
    Posts:
    120
    Hello Unity Avatar Antoine

    Critique on Unity Learn under the Browse menu, there are topics which I chose User Interface. I was a little disappointed that the UI Builder under UI Toolkit was not listed. So I started to search for projects and packages with UI Toolkit examples. I wanted to study what goes where and how... but again I found nothing. I loved the. video dated Oct 14, 2019 called Building UI for games with the new UI Builder - Unite Copenhagen
    (source:
    ) where it listed a Demo with image assets by Michael Desharnais (bechance.net/mdesharnais). The demo was Tanks - Sandbox. I was hoping I could find a similar demo loaded with UI examples of the files (UXML, USS, etc.) that would work upon import into unity.

    Although Antoine answered with a singularity that hardly benefited the main issues, I still appreciate any advice.

    I'll not use the sample project, so instead I put this on HOLD until Unity publish better material under this subject.

    Moving on....