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

Is there a tutorial for using textmeshpro for softmask? #223

Closed
thesleeper opened this issue Jan 6, 2025 · 4 comments
Closed

Is there a tutorial for using textmeshpro for softmask? #223

thesleeper opened this issue Jan 6, 2025 · 4 comments
Assignees
Labels
question Further information is requested released

Comments

@thesleeper
Copy link

thesleeper commented Jan 6, 2025

I would like to use fonts as a mask for image (like a gradient or a cutout for an image) however i dont seem to be able to get softmask to work with textmeshpro. is there a tutorial or a demo for textmeshpro?

I am using unity 6 (v6000.0.28f1)

I apply softmask to my textmeshpro, but the image doesnt appear through the text. im not sure what im doing wrong. i have also added the textmeshpro shaders to the project

top is the old unity mask, bottom is soft mask (without any other changes)
image

In project settings it looks like :
image

@thesleeper thesleeper added the question Further information is requested label Jan 6, 2025
@mob-sakai
Copy link
Owner

Thank you for your reporting!
Upon investigation, I noticed that TextMeshProUGUI does not support the SoftMask component.
However, the MaskingShape component is supported.

@thesleeper
Copy link
Author

thank you for your response!

@mob-sakai
Copy link
Owner

Implement it as follows:
SoftMask.prefab.zip


BTW, this is a bug, so I will support it in the near future.

github-actions bot pushed a commit that referenced this issue Jan 6, 2025
## [3.2.1](3.2.0...3.2.1) (2025-01-06)

### Bug Fixes

* fix SoftMask with TextMeshPro ([abe9388](abe9388)), closes [#223](#223)
@mob-sakai
Copy link
Owner

🎉 This issue has been resolved in version 3.2.1 🎉

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
question Further information is requested released
Projects
None yet
Development

No branches or pull requests

2 participants