mirror of
https://github.com/wyb10a10/cocos_creator_framework.git
synced 2026-05-11 16:22:41 +08:00
15 lines
386 B
TypeScript
15 lines
386 B
TypeScript
import { _decorator, Component, Label, assetManager } from 'cc';
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass
|
|
export default class EmptyScene extends Component {
|
|
@property(Label)
|
|
label: Label | null = null;
|
|
|
|
update() {
|
|
if (this.label) {
|
|
this.label.string = `Current Scene Asset Count ${assetManager.assets.count}`;
|
|
}
|
|
}
|
|
}
|