edit shader

This commit is contained in:
2022-11-09 13:30:45 +05:00
parent dc088ea164
commit 213707fac7
13 changed files with 3170 additions and 307 deletions
+5 -7
View File
@@ -14,10 +14,10 @@ public class QRCodeReader : MonoBehaviour
public event Action<string> OnQRCodeRead;
[SerializeField] AspectRatioFitter aspectRatioFitter;
[SerializeField] RawImage rawImage;
[SerializeField] GameObject scanFrame;
public RawImage rawImage;
public GameObject scanFrame;
private WebCamTexture camTexture;
public WebCamTexture camTexture;
private Coroutine c_QRScanningRoutine;
void Start()
@@ -98,12 +98,10 @@ public class QRCodeReader : MonoBehaviour
}
catch { }
yield return new WaitForSeconds(1f);
yield return new WaitForSeconds(.5f);
}
camTexture.Stop();
gameObject.SetActive(false);
scanFrame.SetActive(false);
yield return new WaitForSeconds(1);
OnQRCodeRead?.Invoke(result.Text);
}