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

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

11. laya.resource.Texture_API3.0 [ 63%]

...eReference _setCPUMemory _setCreateURL _setGPUMemory destroy disposeBitmap event getCachedClip getPixels getTexturePixels hasListener isCreateFromURL load off offAll offAllCaller on once recoverBitmap setTo create createFromTexture destroyUnusedResources Constructors constructor new Texture(source?:...

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

12. [LayaAirIDE3]Panel会使HSlider的拖拽结束检测事件失效 [ 62%]

...n);         if (sliderButton) {             sliderButton.on(Laya.Event.MOUSE_UP, this, () => {                  console.log("滑块按钮拖拽结束");             });         } HSlider是Panel的子物体,会导致这个事件失效,当HSlider拿出Panel的时...

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

13. matter中有没有类似于unity中的OnCollision碰撞检测函数呀,用js怎么写 [ 59%]

...有。这个我给你个demo,你自己看看。 1.初始化 this.Matter.Events.on(this._engine, 'collisionActive', this.onCollision);   2.碰撞检测 private onCollision(event): void { console.log("碰撞了..");  var home = _gamePage._mainPage._playPage;  for(var i = 0; i < event.pairs.len...

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

14. 使用 wx.requestSubscribeMessage 检测不是touched [ 58%]

...: "requestSubscribeMessage:fail require user interaction (only in touchend event)"} 2019-12-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 shiyang 赞同来自: 在onclick里面调用 2020-01-15 0 0 分享 微...

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

15. 碰撞检测关闭问题 [ 58%]

...击事件的传递。   例如(我用的javascript): button.on(Laya.Event.MOUSE_DOWN, null, (e)=>{ // 做一些事   // 终止事件传递 e.stopPropagation() })) 2018-05-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添...

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

16. 如何检测Animation动画播放完毕后去执行方法? [ 57%]

...容相关的链接 提交 1 个回复 qian 赞同来自: a372853273 ani.on(Event.COMPLETE,this,onComplete); 2018-03-20 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 a372853273 相关问题 sprite旋转以后,但是原来碰撞检测re...

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

17. 怎么做到第二次点击color的时候lable背景颜色变回原来的颜色 [ 56%]

...色 this.label.bgColor = "#ff0400"; start(): void { this.color_btn.on(Laya.Event.CLICK, this, this.onTipClick); } if(tipBtn == this.color_btn){ this.label.bgColor = "#ffffff";   2019-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

18. 我竟然被射线检测这个小功能给难了一天了 [ 55%]

...Sprite3D).transform.position) } onStart(): void {     Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDownCb) } private onMouseDownCb(e:Laya.Event):void{ console.log("点击屏幕") // console.log("相机位置",this.camera.) this.camera.viewportPointToRay(new Laya.Vector2(Laya.stage.mouseX,L...

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

19. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 54%]

...; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event.MOUSE_DOWN,this,this.scaleSmall); //添加鼠标抬起事件侦听。抬起时还原按钮。 this.on(Laya.Event.MOUSE_UP,this, this.scaleBig); //添加鼠标离开事件侦听。离开时还原按钮。 this.on(Laya.Ev...

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

20. LayaAirUnityPlugin 2.4beta IOException: Sharing violation [ 54%]

...0) UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout) (at D:/unity/Modules/UIElements/IMGUIContainer.cs:266) UnityEngine.Experimental.UIElements.IMGUIContainer.Handl...

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