level-render/assets/demo/LevelRender.ts
2024-01-19 11:35:46 +08:00

12 lines
275 B
TypeScript

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;
}
}