level-render/assets/demo/LevelRender.ts

12 lines
275 B
TypeScript
Raw Permalink Normal View History

2024-01-19 03:35:46 +00:00
import { _decorator, Component, Node } from 'cc';
const { ccclass, property, menu } = _decorator;
@ccclass('LevelRender')
@menu("性能优化/LevelRender")
export class LevelRender extends Component {
onLoad() {
this.node[`__enableLevelRender`] = true;
}
}