跳到主要内容

mousedownRB 鼠标右键按下事件

mousedownRB

类型: MethodDeclaration

定义位置: scene.ts

描述

鼠标右键按下事件

参数 event: 脚本鼠标事件

参数

参数名类型描述默认值
eventScriptMouseEvent--

返回值

类型: void

源代码

位置: 第 249 行

private mousedownRB(event: ScriptMouseEvent): void {
if (Scene.preventInputEvents !== 0) return
const target = Scene.getActorAtMouse()
target?.emit('mousedownRB', event)
}

文档生成时间:2025/7/7 12:07:06