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 Inverse Masking Shape (Substract) Not Working #217

Closed
ndumais opened this issue Dec 15, 2024 · 5 comments
Closed

TextMeshPro Inverse Masking Shape (Substract) Not Working #217

ndumais opened this issue Dec 15, 2024 · 5 comments
Assignees
Labels
bug Something isn't working released

Comments

@ndumais
Copy link

ndumais commented Dec 15, 2024

Describe the bug
On version 3.0.1 (and possibly the ones prior), adding a masking shape to a GameObject with TextMeshPro (UI) component does not seem to work as expected.

I've made sure the TextMeshPro (UI) shows properly by putting it underneath in the hierarchy and removing the Masking Shape. Note that the mobile hidden soft mask shader for text mesh pro is being used and visible in the inspector (see 2nd screenshot).

To Reproduce
Steps to reproduce the behavior:

  1. Import TextMeshPro support from the package manager.
  2. Make a parent image with SoftMask component (and uncheck show mask graphic).
  3. In childrens, add a normal text with a Masking Shape (and set to substract).
  4. Still in childrens, add the image that will be masked by the text.
  5. It works, the text masks the image (see 1st screenshot).
  6. Add a TextMeshPro (UI) Component in the same way the Unity Text was added (you can remove disable the Unity Text).
  7. Does not work.

Screenshots
image

image

Expected behavior
TextMeshPro UI with a shaping mask should behave as Unity Text if TextMeshPro support is imported.

Environment (please complete the following information):

  • Version 3.0.1
  • Platform: Editor (Windows)
  • Unity version: 2022.3.50f1
  • Build options: .Net 2.1
@ndumais ndumais added the bug Something isn't working label Dec 15, 2024
@mob-sakai
Copy link
Owner

Thank you for your reporting!
Could you please attach a minimal project (included Assets, Packages and ProjectSettings directories) that reproduces the issue?
Of course, you don't need to include any secret assets from your project. Feel free to use free assets instead.

repos

@ndumais
Copy link
Author

ndumais commented Dec 16, 2024

Just created a new project with the two examples side by side

mob-sakai-repro-0.zip

@mob-sakai
Copy link
Owner

Thank you!

mob-sakai added a commit that referenced this issue Dec 21, 2024
@mob-sakai
Copy link
Owner

It will be supported in the next update. 👍

github-actions bot pushed a commit that referenced this issue Dec 22, 2024
# [3.1.0](3.0.1...3.1.0) (2024-12-22)

### Bug Fixes

* soft masking for SubMesheUI (TextMeshProUGUI) may not display correctly ([d417c06](d417c06)), closes [#216](#216)

### Features

* maskingShape with TextMeshPro ([858655f](858655f)), closes [#217](#217)
@mob-sakai
Copy link
Owner

🎉 This issue has been resolved in version 3.1.0 🎉

The release is available on GitHub release

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
Projects
None yet
Development

No branches or pull requests

2 participants