AirtestProject / Poco-SDK

https://github.com/AirtestProject/Poco
Apache License 2.0
279 stars 159 forks source link

UnityEditor获取不到游戏画面 #100

Open mhggpo opened 2 years ago

mhggpo commented 2 years ago

使用PocoHierarchyViewer连接时无法获取到游戏画面 同时控制台报错

ReadPixels was called to read pixels from system frame buffer, while not inside drawing frame.
UnityEngine.Texture2D:ReadPixels (UnityEngine.Rect,int,int)
PocoManager:Screenshot (System.Collections.Generic.List`1<object>) (at Assets/Scripts/Unity3D/PocoManager.cs:137)
RPCParser:HandleMessage (string) (at Assets/Scripts/Unity3D/PocoManager.cs:259)
PocoManager/<>c__DisplayClass22_0:<Update>b__0 (string) (at Assets/Scripts/Unity3D/PocoManager.cs:194)
System.Collections.Generic.List`1<string>:ForEach (System.Action`1<string>)
PocoManager:Update () (at Assets/Scripts/Unity3D/PocoManager.cs:189)
[d3d11] attempting to ReadPixels outside of RenderTexture bounds! Reading (0, 0, 2560, 1440) from (1920, 939)

疑似截图失败