关于Label的渲染流程,有点疑问

所以。。还是在困惑么

不管了,反正知道就行了,我感觉Label的流程官方应该还会再优化,目前看起来不是很顺。

再看了一遍,大概知道了,Label是先将文字绘制在Canvas标签中,然后将Canvas作为贴图对象,在Render阶段渲染出来。

哦看了看 还真是
else { if (!this._ttfTexture) { this._ttfTexture = new cc.Texture2D(); this._ttfTexture.setPremultiplyAlpha(true); this._assemblerData = this._assembler._getAssemblerData(); this._ttfTexture.initWithElement(this._assemblerData.canvas); } this._texture = this._ttfTexture; }