UILoader(资源加载和资源释放) TS库 2.x 版本(2.0.6 版本)
void loadRes(url: string, type: typeof cc.Asset, callback: Function): void
void loadResArr(paths: Array<string>, callfun: Function): void;
void loadAudioClip(path: string, callfun: Function): void;
void loadStaticRes(url: string, type: typeof cc.Asset, tag: string, callback: Function): void;
void loadStaticResArr(paths: Array<string>, tag: string, callfun: Function): void
void loadSpriteFrame(path: string, callfun: Function, retainRes: boolean = false)
void loadSpriteFrames(paths: Array<string>, callfun: Function, retainRes: boolean = false);
void retainNodeRes(node: cc.Node): void;
void releaseNodeRes(node: cc.Node): void;
void releaseNodeRes(node: cc.Node): void;
void releaseStaticRes(tag: string): void;
void retatinRes(res: string): void;
void releaseMusicRes(res: string): void;
void retainArrayRes(res: string[]): void;
void releaseRes(res: string): void;
void releaseArrayRes(res: string[]): void;
更新Sprite 组件 和 Button 组件纹理
void updateSpriteTexture(target: cc.Node, spriteFrame: cc.SpriteFrame): void;
void updateButtonTexture(target: cc.Node, normalSprite?: cc.SpriteFrame, pressedSprite?: cc.SpriteFrame, hoverSprite?: cc.SpriteFrame, disabledSprite?: cc.SpriteFrame): void;
void getCacheCount(): number;