From 84b1ff315486916139f17efe3edddacf373e316a Mon Sep 17 00:00:00 2001 From: skibitsky Date: Thu, 6 Jun 2024 15:43:57 +0300 Subject: [PATCH] Compress QR code texture --- Packages/com.walletconnect.core/Runtime/Utils/QRCode.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Packages/com.walletconnect.core/Runtime/Utils/QRCode.cs b/Packages/com.walletconnect.core/Runtime/Utils/QRCode.cs index ae7af0e9..0e938fd6 100644 --- a/Packages/com.walletconnect.core/Runtime/Utils/QRCode.cs +++ b/Packages/com.walletconnect.core/Runtime/Utils/QRCode.cs @@ -12,6 +12,8 @@ public static Texture2D EncodeTexture(string textForEncoding, int width = 1024, var texture = new Texture2D(width, height); texture.SetPixels32(pixels); + texture.filterMode = FilterMode.Point; + texture.Compress(true); texture.Apply(); return texture;