Giter Site home page Giter Site logo

Unreadable QR Codes about tezos-unity-sdk HOT 2 CLOSED

trilitech avatar trilitech commented on August 21, 2024
Unreadable QR Codes

from tezos-unity-sdk.

Comments (2)

mathias-hiron avatar mathias-hiron commented on August 21, 2024

Additional feedback from Samuel:

Context

Some Unity apps show a QR code IMAGE that is meant to be DETECTED by an unrelated mobile app (e.g. Web3 Wallet)

Issue

Sometimes the Unity app shows the IMAGE then removes it (a sign of proper DETECTION) in < 2 seconds. The user considers that success. However, sometimes the IMAGE is not removed ever (The user gives up after 15 seconds)

Possible Cause

The QR code IMAGE is not at 100% scale. If this is the cause, perhaps it prevents proper image DETECTION. Further complications of this are that perhaps the API generating the IMAGE does it at SOME scale, then the Unity canvas choose ANOTHER scale, then the Game View is set to yet ANOTHER scale, or in the case of a Unity build to device (ex. standalone or mobile) then there is yet ANOTHER scale introduced.

The QR code DETECTION algorithm (detection and/or communication between mobile and the app and any servers) is not stable. If this is the cause, perhaps the image is detected but some subsequent part of the operation fails or is unstable.
It is certainly possible that EITHER or BOTH 1 and 2 cause the issue. I haven't tested this scientifically with repeated systematic checks.

Workarounds

  • At runtime, Ensure the Unity Game View Windows "Scale" slider is set to 100%. I've seen a non-100% value cause problems.
  • At runtime, Slowly Unity Game View Windows "Scale" slider between 0 and 100%. I've seen some value (within 95-100%) work. I think this overcompensates for some complication of the scaling.
  • I stop and start the mobile wallet. Sometimes I think this works. I haven't tested this scientifically.
  • I stop and start the Unity app (stop/start the editor or close/open the build). Sometimes I think this works. I haven't tested this scientifically.

from tezos-unity-sdk.

m-kus avatar m-kus commented on August 21, 2024

Reproduced in Unity Player (inside editor) and in MacOS builds

from tezos-unity-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.