edit shader
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user