public Color32[] GetPixels(Color32[] frameData) { if (frameData == null || frameData.Length != WebCam.height * WebCam.width) { return(WebCam.GetPixels32()); } return(WebCam.GetPixels32(frameData)); }