You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 15, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: Assets/Scripts/ScreenRecorder.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,9 @@ public void StopRecording()
27
27
boolisRecording=false;
28
28
IEnumeratorCaptureScreen(stringmaidata_path)
29
29
{
30
-
if(Screen.width%2!=0)
30
+
if(Screen.width%2!=0||Screen.height%2!=0)
31
31
{
32
-
GameObject.Find("ErrText").GetComponent<Text>().text="无法开始编码,因为分辨率宽度不是偶数。\nCan not start render because the width is not even.\n当前分辨率:"+Screen.width+"x"+Screen.height+"\n";
32
+
GameObject.Find("ErrText").GetComponent<Text>().text="无法开始编码,因为分辨率宽度或高度不是偶数。\nCan not start render because the width/height is not even.\n当前分辨率:"+Screen.width+"x"+Screen.height+"\n";
0 commit comments