• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 454 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0063 秒)

211. 陀螺仪与加速计(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 51%]

...、陀螺仪 ​ `Gyroscope`通过`change`事件对设备方向改变进行监听。该事件有两个回调参数: - `absolute` —— 如果设备提供的方位是基于设备坐标系统和地球坐标系统间的差距,则是`true`;如果设备无法检测到地球坐标系统,`absolute...

来源: Laya2.0_文档 发布时间: 20210714

212. http无响应 [ 51%]

...继承关系 //初始化函数 LoginView.prototype.init = function () { //监听登录按钮按下事件 this.login.on(Laya.Event.CLICK,this,this.onButtonLogin); //忘记密码 this.wjmm.on(Laya.Event.CLICK,this,this.onLableWjmm); } //登录按钮响应函数 LoginView.prototype.onButtonLogin = func...

来源: Laya_社区 发布时间: 20170215

213. ProtocolBuffer通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 51%]

... }); wss.on("connection", (ws) => { console.log("Client connected"); // 监听消息 ws.on("message", (data) => { // 将接收到的二进制数据buffer解码(反序列化)为ChatMessage对象 const receivedMessage = ChatMessage.decode(new Uint8Array(data)); console.log("Received ChatMessage ...

来源: Laya3.0_文档 发布时间: 20250103

214. laya.ui.ScrollBar [ 51%]

...mouseEnabled : Boolean 是否接受鼠标事件。 默认为false,如果监听鼠标事件,则会自动设置本对象及父节点的属性 mouseEnable 的值都为 true(如果父节点手动设置为false,则不会更改)。 Sprite mouseThrough : Boolean = false 鼠标事件与此对象...

来源: Laya2.0_api 发布时间: 20190513

215. laya.d3.core.render.ScreenTriangle_API3.0 [ 50%]

... in laya/events/EventDispatcher.ts:146 移除caller为target的所有事件监听 Parameters caller: any caller对象 Returns EventDispatcher on on(type: string, listener: Function): EventDispatcher on(type: string, caller: any, listener: Function, args?: any[]): EventDispatcher Inherited from Event...

来源: Laya3.0_api 发布时间: 20231102

216. 陀螺仪与加速计(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 50%]

...、陀螺仪 ​ `Gyroscope`通过`change`事件对设备方向改变进行监听。该事件有两个回调参数: - `absolute` —— 如果设备提供的方位是基于设备坐标系统和地球坐标系统间的差距,则是`true`;如果设备无法检测到地球坐标系统,`absolute...

来源: Laya2.0_文档 发布时间: 20210714

217. laya.ui.ComboBox [ 50%]

...mouseEnabled : Boolean 是否接受鼠标事件。 默认为false,如果监听鼠标事件,则会自动设置本对象及父节点的属性 mouseEnable 的值都为 true(如果父节点手动设置为false,则不会更改)。 Sprite mouseThrough : Boolean = false 鼠标事件与此对象...

来源: Laya2.0_api 发布时间: 20190513

218. laya.ui.UIComponent [ 50%]

...mouseEnabled : Boolean 是否接受鼠标事件。 默认为false,如果监听鼠标事件,则会自动设置本对象及父节点的属性 mouseEnable 的值都为 true(如果父节点手动设置为false,则不会更改)。 Sprite mouseThrough : Boolean = false 鼠标事件与此对象...

来源: Laya2.0_api 发布时间: 20190513

219. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

...: //在CameraControll.ts类下的onStart()方法中,加入鼠标按下监听 //Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); //鼠标点下事件,处理发射射线,检测碰撞物体 onMouseDown(e: Laya.Event) { let point = new Laya.Vector2(); point.x = Laya.stage.mouseX; poi...

来源: Laya3.0_文档 发布时间: 20240910

220. laya.ani.AnimationPlayer_API3.0 [ 50%]

... in laya/events/EventDispatcher.ts:146 移除caller为target的所有事件监听 Parameters caller: any caller对象 Returns EventDispatcher on on(type: string, listener: Function): EventDispatcher on(type: string, caller: any, listener: Function, args?: any[]): EventDispatcher Inherited from Event...

来源: Laya3.0_api 发布时间: 20231115