IEnumerator Pushing(Texture outputBuffer) { yield return(new WaitForEndOfFrame()); while (isPushing) { yield return(new WaitForEndOfFrame()); encoder.EncodeFrame((RenderTexture)outputBuffer); } }