API 参考scene 模块preventInput 阻止场景输入On this pagepreventInput 阻止场景输入preventInput 类型: MethodDeclaration 定义位置: scene.ts 描述 阻止场景输入 返回值 类型: void 源代码 位置: 第 391 行 public preventInput(): void { this.preventInputEvents++ } 文档生成时间:2025/7/7 12:07:06