Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Disabling IMGUI module in package manager makes TMP complain

Discussion in 'Unity UI & TextMesh Pro' started by Rodolphito, Jun 12, 2018.

  1. Rodolphito

    Rodolphito

    Joined:
    Jan 31, 2014
    Posts:
    15
    I'd like to cut out unused modules, and since I am not using the old gui system anywhere, then I want to get rid of it. The problem is that Text Mesh Pro depends on it! So, should I give or is there a way to do it? Or am I mistaken in believing that I should cut out modules manually?
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    1,858
    The Unity Editor and TextMesh Pro Inspectors need IMGUI.

    If you meant to say UGUI, TextMesh Pro does currently have a dependency on that but that is something I am hoping to change going forward. But until then, TMP requires UGUI.
     
  3. Rodolphito

    Rodolphito

    Joined:
    Jan 31, 2014
    Posts:
    15
    I understand that the editor components need IMGUI, I thought that it could be disabled for the build. Looking at the built executable, the IMGUI DLL is included, although it is not used anywhere in the project, at least not in non-editor scripts. This is why I wanted to remove it.
     
  4. Tudor-Nita

    Tudor-Nita

    Joined:
    Dec 10, 2009
    Posts:
    332
    Would also like to see IMGUI stripped from the built package. Anything planned for that ?
     
  5. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    1,858
    Yes but no ETA on this yet.
     
    Tudor-Nita likes this.
  6. adam_sgil

    adam_sgil

    Joined:
    Jan 23, 2013
    Posts:
    5
    yes please also.
     
  7. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    1,858
    UGUI will become a package in Unity 2019.1 and as such should now get striped from builds unless it is used.

    TMP will now have a dependency on the UGUI package. Both TMP text components have this dependency but this is something I would like to do away for the normal <TextMeshPro> component. Obviously the <TextMeshProUGUI> component will still have the dependency.