-
-
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
Update softmask not working when canvas component was deactivated #66
Comments
Hi @Danilovic Thank you for your reporting! |
Many scripts are missing in your scene... X( |
I just downloaded the package in another pc with a clean Unity with no projects and I didn't see the missing files, in fact, I didn't use any custom script for this example. Could you show me the gameobject (s) with this problem? |
I imported it to Unity2018.3 project on Mac. |
Hmm, I tested it with Unity2018.2 and Unity2018.3 on Mac and Windows, but it does not work... Edit: All missing scripts are not solved... |
Fix SoftMask.cs(line:428) as following: if (!sm || sm._hasChanged) To if (!sm || sm._hasChanged || !sm.graphic || !sm.graphic.canvas) Does it work well? |
It doesn't work for me. I tested the package on Unity 2019.2.8 and works ok, without missing scripts so I tested the same package on Unity 2018.2 and I saw the missing files. Please check on Unity 2019.2.8 |
Hi, I am having the same issue. Attached you can find a sample project (hopefully with no missing scripts!) Steps:
This causes a NullReferenceException. Depending on which Canvas Render mode the culprit is either the Canvas or the Camera. Kind regards |
Thank you! |
Hi!
I have encountered an issue when I deactivate the canvas component of a gameobject where the masks are located, when softmask script tries to update those masks, it throws a null.
You can find a little package with an example.
SoftMaskIssue.zip
Regards
The text was updated successfully, but these errors were encountered: