新的版本出来了,带来了一些新的变化
其中关于Texture2D.ReadPixels有点特殊说明
在移动平台上,该函数被推迟到本frame最后时完成
如果有Apply的话也推迟到最后完成
要使用的话使用corotine
On mobiles, if you read pixels from screen, the call will be deferred to the end of the frame. If you read pixels from the screen and call Apply right after it - apply will be deferred too. If you want to read from the screen and do something with the result you need to use coroutine.
*************************************************************************************************************
按照实例代码改写了,竟然还是有意外情况,这个要研究下
在PC测试没问题,问题出在使用了投影仪,有时间测试下,哎,我的青春时间哇
*************************************************************************************************************
明白在在投影仪上的问题是因为投影仪分辨率的问题造成的,一直没有时间记录下来,更新下