I am using WebCamTexture to access android device’s back camera to do OCR job.
[145278-捕获.png|145278]
It seems WebCamTexture consume too much memory for every input video frame, which exceeds the speed of garbage collection. Finally, the app crash because android system is out of memory.
Not sure if this is helpful, but a year ago I had a similar problem on Android from RenderTextures. My issue was that I was frequently creating RenderTextures and not manually disposing them (via Destroy(myRenderTexture) or myRenderTexture.Release()). From the script you pasted, it doesn’t look like that’s what you’re doing, but there might be something similar going on outside the scope of this script.