答案 0 :(得分:2)
您需要知道要复制的框的尺寸。然后将值传递给ReadPixels方法
float width = boxWidth;
float height = boxHeight;
float x = boxXPosition;
float y = boxYPosition;
var tex = new Texture2D( 1, 1, TextureFormat.RGB24, false );
tex.ReadPixels( new Rect(x,y,width,height), 0, 0 );
tex.Apply();
http://docs.unity3d.com/ScriptReference/Texture2D.ReadPixels.html