打开MVVM在编辑器模式下运行

This commit is contained in:
dgflash
2025-09-04 20:19:59 +08:00
parent 99f53fbe46
commit 90c4195a66

View File

@@ -1,9 +1,9 @@
import { EDITOR } from "cc/env";
import { EDITOR_NOT_IN_PREVIEW } from "cc/env";
/** VM组件环境验证 */
export class VMEnv {
/** 编辑状态 */
static get editor() {
return EDITOR;
return EDITOR_NOT_IN_PREVIEW;
}
}