Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextMeshPro not work TMP_SubMeshUI (Enable Bold) #94

Closed
Avatarchik opened this issue Jun 20, 2020 · 3 comments
Closed

TextMeshPro not work TMP_SubMeshUI (Enable Bold) #94

Avatarchik opened this issue Jun 20, 2020 · 3 comments
Assignees
Labels
bug Something isn't working released on @preview

Comments

@Avatarchik
Copy link

NOTE: Your issue may already be reported! Please search on the issue tracker before creating one.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Version [e.g. 1.0.0]
  • Platform: [e.g. Editor(Windows/Mac), Standalone(Windows/Mac), iOS, Android, WebGL]
  • Unity version: [e.g. 2018.2.8f1]
  • Build options: [e.g. IL2CPP, .Net 4.x, LWRP]

Additional context
Add any other context about the problem here.

@Avatarchik Avatarchik added the bug Something isn't working label Jun 20, 2020
@Avatarchik Avatarchik changed the title TextMeshPro not work TMP_SubMeshUI TextMeshPro not work TMP_SubMeshUI (Enable Bold) Jun 20, 2020
@arenart99
Copy link

arenart99 commented Jul 15, 2020

Temporarily I added a "if" check in SoftMaskable.cs (line 285)

        var current = this;
        UnityEditor.EditorApplication.delayCall += () =>
        {
            if (!current) return;
            if (!graphic) return;
            if (graphic.name.Contains("TMP SubMeshUI")) return;
            if (!graphic.material) return;
            if (!graphic.material.shader) return;
            if (graphic.material.shader.name != "Hidden/UI/Default (SoftMaskable)") return;

            graphic.material = null;
            graphic.SetMaterialDirtyEx();
        };

@mob-sakai
Copy link
Owner

@Avatarchik @arenart99
Thank you for your cooperation.

mob-sakai added a commit that referenced this issue Sep 8, 2020
github-actions bot pushed a commit that referenced this issue Sep 8, 2020
# [1.0.0-preview.9](v1.0.0-preview.8...v1.0.0-preview.9) (2020-09-08)

### Bug Fixes

* TextMeshPro not work TMP_SubMeshUI ([56995e9](56995e9)), closes [#94](#94)
@github-actions
Copy link

github-actions bot commented Sep 8, 2020

🎉 This issue has been resolved in version 1.0.0-preview.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released on @preview
Projects
None yet
Development

No branches or pull requests

3 participants