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. Dismiss Notice

UI Toolkit missing text dependencies with 2021.2b

Discussion in 'UI Toolkit' started by oboforty, Aug 3, 2021.

  1. oboforty

    oboforty

    Joined:
    Dec 3, 2019
    Posts:
    5
    Hello. After adding ui toolkit on a fresh install on 2021.2b I am greeted with these error messages:

    Library\PackageCache\com.unity.ui@1.0.0-preview.14\Core\Text\TextHandle.cs(36,16): error CS0246: The type or namespace name 'FontAsset' could not be found (are you missing a using directive or an assembly reference?)
    Library\PackageCache\com.unity.ui@1.0.0-preview.14\Core\Text\TextHandle.cs(154,61): error CS0234: The type or namespace name 'MeshInfo' does not exist in the namespace 'UnityEngine.TextCore' (are you missing an assembly reference?)
    Library\PackageCache\com.unity.ui@1.0.0-preview.14\Core\Text\TextHandle.cs(167,32): error CS0246: The type or namespace name 'MeshInfo' could not be found (are you missing a using directive or an assembly reference?)

    etc...

    Seems like TextMeshPro dependencies are missing, but installing it doesn't change much.

    Any ideas guys? Moreover, any insight on when this package will be stable? Should we just forget it and stick with gameobject based UIs?
     
  2. lang_fox

    lang_fox

    Joined:
    May 19, 2014
    Posts:
    13
    Remove UIToolkit and UIBuilder from Package Manager.
    They are built-in now.