@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