private void Awake() { textureCapture = GetComponent <TextureCapture>(); textureCapture.SetRenderTexture(renderTexture); Application.runInBackground = true; }