You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When adding a SoftMask component to an empty GameObject, NullReferenceExceptions are continuously thrown until a Graphic is also added.
To Reproduce
Steps to reproduce the behavior:
Create an empty GameObject
Add a SoftMask component
See error in console
Expected behavior
No errors are thrown when adding a SoftMask component.
Either a default Graphic should be added if required (during Reset or OnValidate), or ideally, handle missing Graphic components.
Environment (please complete the following information):
Version: 1.0.2
Platform: Editor(Windows)
Unity version: 2022.3.9f1
Additional context
NullReferenceException: Object reference not set to an instance of an object
Coffee.UISoftMask.SoftMask.UpdateMaskTextures () (at ./Library/PackageCache/com.coffee.softmask-for-ugui@1.0.2/Scripts/SoftMask.cs:476)
UnityEngine.Canvas.SendWillRenderCanvases () (at <836aea33117647b388cc5f48bed669c4>:0)
The text was updated successfully, but these errors were encountered:
Describe the bug
When adding a SoftMask component to an empty GameObject, NullReferenceExceptions are continuously thrown until a Graphic is also added.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No errors are thrown when adding a SoftMask component.
Either a default Graphic should be added if required (during Reset or OnValidate), or ideally, handle missing Graphic components.
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: