-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
Softmask elements stop drawing on resolution change sometimes #208
Comments
Thank you for your reporting! |
I think you are in the same situation as I was in before. I thought this was solved, but the problem still persists in some spots. Especially when you want to do a masking in scroolview, UISoftMask cannot keep up with the scrolling speed. Especially when done in wordcanvas + scrollview, it really exhibits inconsistencies. I didn't have a chance to download and test your project, but I suggest you try the following temporary solutions.
|
Fortunately, the issue did not reproduce in the build. |
The fix was released in v2.4.2. 👍 |
I've tested it and it works. But I found one issue, not sure if it is related: when I start Unity and it opens this scene initially (on first load) it throws this exception:
If I reload the scene, start, stop play mode, I don't get this exception. Only on Unity startup if this is the first scene. When this happen, if I press play and click on screen, the softmask stops drawing again. Restarting play mode fixes it - clicking doesn't stop softmask drawing. EDIT: ok, similar exception happens if you start Unity on different scene, then switch to my scene. And softmask drawing is broken. |
For now, I reverted the fix. (v2.4.3) |
Umm, it is not reproduced on my environment.
|
I have migrated to Unity 6.0.27f1 and it still happens, same callstack. |
I happen to have a MacBook Pro with Sonoma installed. I copied the Unity 6.0.27f1 windows project version (including the Library & UserSettings folders) on it, after platform switch and restart it happened - the same exception. PaperMap scene opened. |
Thank you. |
🎉 This issue has been resolved in version 2.4.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
…e has completed close #208
It's fixed. Thanks a lot :) |
Describe the bug
Sometimes (for example when I just started the sample project), when tweaking the Power value while the game is running, everything in the soft mask stops drawing. Maximizing the game view (i.e. changing the resolution?) fixes it.
Similar thing happens on my original project, often when switching between fullscreen and window and clicking/drag the scrollview? - softmask stops drawing. To go fullscreen I use the Fullscreen Editor plugin (included in the project), but I don't think it's related. (in the gif, I switch to fullscreen via hotkey, so the whole image changes suddenly multiple time). Showing the pause menu overlay also fixes the drawing (enabling game objects?)
I have updated my project to include the stripped down of my original game setup with all the code. Look for "PaperMap.unity" scene for the game version and "PaperMap-Old.unity" for the previous sample project with the "Power" feature. But generally, both scenes experience the issue, most often on resolution change.
Updated project link: https://drive.google.com/file/d/1rsZ8mC24-38FF9fYEvkh7QYmd80dxJ83/view?usp=sharing
Toggle between windowed mode and fullscreen via "Fullscreen" menu at the top, or F10 hotkey (for me it's ALT+F2).
The scrollview has some components that tweak the behaviour, which may be important?
Note that in my projects, I've turned off assembly and scene reloads (if it makes any difference).
To Reproduce
Steps to reproduce the behavior:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: