From 135b12313b977750e0797dceb1ad08cf87ce607a Mon Sep 17 00:00:00 2001 From: mob-sakai <12690315+mob-sakai@users.noreply.github.com> Date: Thu, 14 Nov 2024 03:31:00 +0900 Subject: [PATCH] fix: alpha hit test not working in demo scene Alpha hit test is not supported when the texture is in crunch format or non-readable. close #210 --- Packages/src/README.md | 1 + Packages/src/Samples~/Demo/Textures/SoftMask-Demo.spriteatlas | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Packages/src/README.md b/Packages/src/README.md index fad927a..b4065a2 100644 --- a/Packages/src/README.md +++ b/Packages/src/README.md @@ -426,6 +426,7 @@ The following are the limitations of SoftMaskForUGUI. - Use a format that supports alpha, such as `RGBA ETC2`. - Technically possible, but not supported because [ETC2 support rate is over 95%](https://developer.android.com/guide/playcore/asset-delivery/texture-compression). - If needed, feel free to create an issue. +- Alpha hit test is not supported when the texture is in crunch format or non-readable.

diff --git a/Packages/src/Samples~/Demo/Textures/SoftMask-Demo.spriteatlas b/Packages/src/Samples~/Demo/Textures/SoftMask-Demo.spriteatlas index 67b4fdf..0764a03 100644 --- a/Packages/src/Samples~/Demo/Textures/SoftMask-Demo.spriteatlas +++ b/Packages/src/Samples~/Demo/Textures/SoftMask-Demo.spriteatlas @@ -28,7 +28,7 @@ SpriteAtlas: m_TextureFormat: -1 m_TextureCompression: 1 m_CompressionQuality: 50 - m_CrunchedCompression: 1 + m_CrunchedCompression: 0 m_AllowsAlphaSplitting: 0 m_Overridden: 0 m_AndroidETC2FallbackOverride: 0