void CaptureCamera() { tmpBgTex = CommonFunc.CaptureCamera(NGUITools.FindCameraForLayer(this.gameObject.layer), new Rect(0, 0, Screen.width, Screen.height)); texBG.mainTexture = tmpBgTex; }