|
@@ -433,8 +433,6 @@ namespace GFGGame
|
|
GRoot.inst.visible = false;
|
|
GRoot.inst.visible = false;
|
|
yield return new WaitForEndOfFrame();
|
|
yield return new WaitForEndOfFrame();
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
Rect rect = new Rect(0, 0, UnityEngine.Screen.width, UnityEngine.Screen.height);
|
|
Rect rect = new Rect(0, 0, UnityEngine.Screen.width, UnityEngine.Screen.height);
|
|
Texture2D tex = new Texture2D((int)rect.width, (int)rect.height, TextureFormat.ARGB32, false);//新建一个Texture2D对象
|
|
Texture2D tex = new Texture2D((int)rect.width, (int)rect.height, TextureFormat.ARGB32, false);//新建一个Texture2D对象
|
|
tex.ReadPixels(rect, 0, 0);//读取像素,屏幕左下角为0点
|
|
tex.ReadPixels(rect, 0, 0);//读取像素,屏幕左下角为0点
|