mirror of
https://gitee.com/ccc_28/level-render
synced 2024-12-26 11:48:40 +00:00
12 lines
275 B
TypeScript
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;
|
||
|
}
|
||
|
}
|
||
|
|