Closed jewelvjohn closed 1 month ago
Thank you for your reporting! Tell me about your develop/build environment.
Could you please attach a minimal project (included Assets
, Packages
and ProjectSettings
directories) that reproduces the issue?
Thank you for replying quickly. Here is the build info,
SoftMask version: 2.0.0 Platform: Standalone Windows Unity version: 2022.3.14f1 Build options: Mono, .NET Standard 2.1, Build-in RP
The project zip file is around 300MB, so I uploaded it to my mediafire & google drive accounts.
These are the links: MediaFire Google Drive
Please try Project Settings > UI > Soft Mask > Included Shaders > Reset
The issue is reproduced on my environment. I created a new issue: #178 It will be fixed in v2.1.2.
Hasty workaround:
Project Settings > UI > Soft Mask > Included Shaders > Reset
and save project.
:tada: This issue has been resolved in version 3.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
I was using the TextMeshPro Support (ugui 2.0). It worked great, everything was crisp in the unity player, but on the windows build the text didn't show up and it said this error:
Error
ArgumentNullException: Value cannot be null. Parameter name: shader at (wrapper managed-to-native) UnityEngine.Material.CreateWithShader(UnityEngine.Material,UnityEngine.Shader) at UnityEngine.Material..ctor (UnityEngine.Shader shader) [0x00008] in C:\build\output\unity\unity\Runtime\Export\Shaders\Material.bindings.cs:18 at Coffee.UISoftMask.SoftMaskUtils.GetSoftMaskingMaterial (UnityEngine.Material& mat, UnityEngine.Rendering.BlendOp op) [0x00011] in .\Library\PackageCache\com.coffee.softmask-for-ugui@c13e44dc66\Runtime\Utilities\SoftMaskUtils.cs:143 at Coffee.UISoftMask.SoftMaskUtils.GetSoftMaskingMaterial (Coffee.UISoftMask.MaskingShape+MaskingMethod method) [0x00001] in .\Library\PackageCache\com.coffee.softmask-for-ugui@c13e44dc66\Runtime\Utilities\SoftMaskUtils.cs:131 at Coffee.UISoftMask.SoftMask.RenderSoftMaskBuffer (UnityEngine.Rendering.CommandBuffer cb, UnityEngine.Camera+MonoOrStereoscopicEye eye) [0x0018b] in .\Library\PackageCache\com.coffee.softmask-for-ugui@c13e44dc66\Runtime\SoftMask.cs:810 at Coffee.UISoftMask.SoftMask.RenderSoftMaskBuffer () [0x0022b] in .\Library\PackageCache\com.coffee.softmask-for-ugui@c13e44dc66\Runtime\SoftMask.cs:740 at Coffee.UISoftMaskInternal.FastAction+<>c.I initially thought that the hidden SoftMask shaders for the TMP was not getting included in the build. But even after adding them to the 'always include shaders list' in the 'Project Settings/Graphics' options the problem persists.
1. how it looks in the windows build:
2. how it looks in the unity player:
3. always include shaders list: