mob-sakai / SoftMaskForUGUI

Enhance Unity UI (uGUI) with advanced soft-masking features to create more visually appealing effects!
https://github.com/mob-sakai/SoftMaskForUGUI
MIT License
1.97k stars 261 forks source link

TextMeshPro not work TMP_SubMeshUI (Enable Bold) #94

Closed Avatarchik closed 3 years ago

Avatarchik commented 4 years ago

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):

Additional context Add any other context about the problem here.

arenart99 commented 4 years ago

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 commented 3 years ago

@Avatarchik @arenart99 Thank you for your cooperation.

github-actions[bot] commented 3 years ago

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

The release is available on:

Your semantic-release bot :package::rocket: