Skip to content

Conversation

@chrisfromwork
Copy link
Contributor

I have been using Unity 2019.2.17f1 and hit an issue with how TextMeshPro 2.0.0 references Unity.ugui.

Unity.ugui is available in the editor but is not located when generated MSBuildForUnity projects. It seems the Unity.ugui may long term be replaced by UnityEngine.UI, or at least they contain the same class content and references to UnityEngine.UI fix in editor references to Unity.ugui.

When setting up the TextMeshPro reference project (as well as other projects referencing Unity.ugui), redirecting the reference from Unity.ugui to UnityEngine.UI unblocked MSB4U builds outside of the editor. It seems like there may be more cases like this/having the ability to specify a ProjectAliases dictionary may be needed for other UPM packages that are labeled as other items/are available in the editor.

@andreiborodin
Copy link
Contributor

Thanks for the change, however, I think we should find a more robust way of making this work. I will look into it, but will leave this open until I find something else.

@andreiborodin
Copy link
Contributor

This was essentially brought forward as part of #102, with slight modifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants