Skip to content

Commit

Permalink
Decrease QR code resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
skibitsky committed Jun 7, 2024
1 parent 84b1ff3 commit 2ed4b92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Packages/com.walletconnect.core/Runtime/Utils/QRCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace WalletConnectUnity.Core.Utils
{
public class QRCode
{
public static Texture2D EncodeTexture(string textForEncoding, int width = 1024, int height = 1024)
public static Texture2D EncodeTexture(string textForEncoding, int width = 512, int height = 512)
{
var pixels = EncodePixels(textForEncoding, width, height);

Expand All @@ -19,7 +19,7 @@ public static Texture2D EncodeTexture(string textForEncoding, int width = 1024,
return texture;
}

public static Color32[] EncodePixels(string textForEncoding, int width = 1024, int height = 1024)
public static Color32[] EncodePixels(string textForEncoding, int width = 512, int height = 512)
{
var qrCodeEncodingOptions = new QrCodeEncodingOptions
{
Expand Down

0 comments on commit 2ed4b92

Please sign in to comment.