如题,主要是想调用 RenderTexture 的 readPixels 读取图片像素的数据。
RenderTexture中有个方法叫 drawTextureAt
你可以这样像使用,然后你就能从renderTexture里面拿到对应的像素数据了
如果有帮助,还请设置为解决方案
1赞
RenderTexutre 是可以创建了,不过 readPixels 读取不了 图片像素的数据
可以读取,我这样跑过的。
请问你用的是哪一个版本的cocoscreator,脚本用的是ts吗?
2.0 ts
有没有js版的?
一样的用法
微信小游戏上用不了 drawTextureAt, 怎么处理
微信小游戏能现在能通过Texture2D创建RenderTexture吗,主要是读图片的像素数据
哇 大佬 测试了可用 多谢分享
mark–