mirror of
https://gitee.com/ccc_28/level-render
synced 2024-12-25 03:08: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;
|
|
}
|
|
}
|
|
|