Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

RenderTexture 截图不全

$
0
0

@869761299 写道:

RenderTexture 截图不全

local view = cc.Director:getInstance():getRunningScene():getChildByTag(INDEX_SHOPVIEW)
local scene = cc.Director:getInstance():getRunningScene()

local winSize = cc.Director:getInstance():getWinSize()

local renderTexture=cc.RenderTexture:create(winSize.width, winSize.height,
                                            cc.TEXTURE2_D_PIXEL_FORMAT_RGB_A8888)
renderTexture:retain()
renderTexture:setGlobalZOrder(0)
renderTexture:begin()
view:visit()
//scene:visit()
renderTexture:endToLua()

无论是view的visit或者scene的visit 都无法完成截取整个屏幕, 有些控件截取不到, 求引擎组解释下

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>