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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Disabling Physics built-in package breaks TMPro

Discussion in 'UGUI & TextMesh Pro' started by Manufacture43, Sep 28, 2018.

  1. Manufacture43

    Manufacture43

    Joined:
    Apr 21, 2017
    Posts:
    140
    Hello,

    I found a small issue with TMPro in Unity 2018.2. If we disable the physics package in the package manager, TMPro doesn't build anymore. TMP_SubMesh.cs has that weird code that references a BoxCollider. I just commented it out as it shouldn't change anything in my project.

    For a better solution, I guess it would be needed to add define guards. But I don't know if there is any kind of #if UNITY_PHYSICS_PACKAGE that TMPro could use...
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    The property and method contained in the TMP_SubMesh.cs file that make use of the Physics system were used as part of some examples I created for users to make it possible for characters to interact with other objects.

    Such property and method can certainly be commented out as they are not essential. In honesty, leaving them in there was an oversight on my part. They will be commented out in the next release of TMP. I will leave them in there in the event some users need such functionality.
     
    Manufacture43 likes this.