mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-09-24 08:14:36 +00:00
[engine] 新 Char 缓存模式实现
This commit is contained in:
@@ -483,6 +483,10 @@ let Label = cc.Class({
|
||||
|
||||
if (oldValue === CacheMode.CHAR) {
|
||||
this._ttfTexture = null;
|
||||
const material = this._materials[0];
|
||||
if (material && material.material && cc.Label._shareAtlas.material === material.material) {
|
||||
this.setMaterial(0, this._getDefaultMaterial());
|
||||
}
|
||||
}
|
||||
|
||||
if (!this.enabledInHierarchy) return;
|
||||
|
Reference in New Issue
Block a user