mirror of
https://github.com/wyb10a10/cocos_creator_framework.git
synced 2026-05-15 10:17:58 +08:00
12 lines
319 B
TypeScript
12 lines
319 B
TypeScript
const { ccclass, property } = cc._decorator;
|
|
@ccclass
|
|
export default class EmptyScene extends cc.Component {
|
|
@property(cc.Label)
|
|
label: cc.Label = null;
|
|
|
|
start() {
|
|
let ccloader: any = cc.loader;
|
|
this.label.string = `Current Scene Asset Count ${Object.keys(ccloader._cache).length}`;
|
|
}
|
|
}
|