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

大约有 697 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0049 秒)

301. sprite添加texture后,sprite无法触发点击事件? [ 57%]

...听(A页面派发 B页面侦听) TextInput重写onFocus和onBlur事件监听不到 有什么容器能够实现当子元素达到显示上限后自动滚屏,使得新添加的元素始终保持在最底部显示? 求指点3d射线碰撞和UI点击穿透的问题 救命!canvas定位后 点...

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

302. 代码重用和公共函数的疑问,在TS里怎么使用? [ 57%]

...TS里怎么使用? 比如我每个页面上 都有相同的按钮需要监听,都需要使用相同的函数,那么目前我只能在每个页面上都写相同的代码。这样就失去面向对象的意义,有什么思路可以解决代码重用? 2017-09-24 添加评论 免费帖 --> ...

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

303. laya.d3.core.render.ScreenTriangle_API3.0 [ 57%]

... 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

304. 鼠标滚轮滚动事件 [ 57%]

...听(A页面派发 B页面侦听) TextInput重写onFocus和onBlur事件监听不到 btn 鼠标移动上去默认文本颜色是绿色,我想换成其他颜色,如何操作? 关于使用matterjs物理引擎鼠标问题 Animation如何加点击事件 关于遍历产生的sprite的点击事件...

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

305. 打包淘宝小程序后,大部分手机无法打开,模型也无法居中 [ 57%]

...老版本的淘宝适配库需要配合注释掉 laya.tbmini.js 里 以下监听: Laya.stage.on("resize", null, MiniInput._onStageResize); 2020-10-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 1603252586用户 相关问题 请问...

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

306. laya.device.Shake [ 57%]

...offAllCaller(caller:*):EventDispatcher 移除caller为target的所有事件监听 EventDispatcher on(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher 使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知。 Even...

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

307. laya.d3.webxr.core.WebXRSessionManager_API3.0 [ 57%]

... 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

308. 如何对3D精灵进行鼠标检测(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 57%]

...。 ![](img/1.png)(图1) ```typescript { //在舞台上添加鼠标事件监听 Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); } //点击触发事件 onMouseDown() { //记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.inst...

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

309. 如何对3D精灵进行鼠标检测(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 57%]

...。 ![](img/1.png)(图1) ```typescript { //在舞台上添加鼠标事件监听 Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); } //点击触发事件 onMouseDown() { //记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.inst...

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

310. laya.ani.AnimationPlayer_API3.0 [ 57%]

... 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