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

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

1061. 透明区域点击问题 [ 55%]

...= true; sprite0.name = 'sprite0'; Laya.stage.addChild(sprite0); sprite0.on(Event.CLICK, this, handler_click); 怎么让sp透明区域不可点,有像素的地方才能接受到事件; hitArea,目前只支持圆形,矩形,多边形,而sp绘制的是一个不规则图形,请问这个怎么...

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

1062. Stage中删除不掉Scene [ 55%]

Stage中删除不掉Scene Laya.stage.on(Laya.Event.MOUSE_UP, this, function () {     var str = "";     if (!hit.sprite3D) {         str = "点击选取的几何体";     } else {         Laya.stage.removeChild(scene3D);     }     console.log(str); });     每次删除scene3D后...

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

1063. 背景音乐在微信小游戏中播放问题 [ 55%]

...相关的链接 提交 1 个回复 bpmf_d 赞同来自: Laya.stage.on(Laya.Event.FOCUS,this,()=>{}); 可以加一个获得焦点的监听 得到焦点的时候就开始播 2019-05-10 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 天...

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

1064. drawTexture的matrix参数是怎么用的 [ 55%]

...数是什么 Laya.Handler.create 加载图片回调参数问题 Dispather.event参数传的是数组,为什么收到的参数却是个int类型? http 请求 once 的 回调参数,如何传递和接收? 点击按钮打开对话框的时候能往对话框中传一个参数吗 laya 发布成微...

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

1065. laya.ui.ColorPicker_API3.0 [ 55%]

...ve addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer close contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex...

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

1066. 小白求助,关于时间轴动画如何设置播放一次后消失? [ 55%]

...相关的链接 提交 1 个回复 qian 赞同来自: 为你的动画监听Event.COMPLETE事件,该事件会再动画播放完一遍后触发,可以在该回调里将动画停止并销毁! 2018-01-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

1067. 场景管理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 55%]

...完毕,此方法只执行一次 */ onAwake(): void { this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开Msg场景 Laya.Scene.open("Msg.ls", false, { "text": "点击成功!" }); }); } } 其中,Scene场景有一个Button组件,需要在IDE中,将其拖入到@property暴露...

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

1068. laya.ui.DialogManager_API3.0 [ 55%]

...ve addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer close closeAll closeByGroup contains customRender destroy destroyChildren doClose doOpen drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt get...

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

1069. TimeLine运行的小问题 [ 54%]

...Laya.stage.addChild(sp); var timeLine:TimeLine=new TimeLine(); timeLine.on(Event.LABEL,this,onLabel); timeLine.addLabel("A",0).to(sp,{rotation:360},700) .addLabel("B",0).to(sp,{scaleY:0.7},200) .addLabel("C",0).to(sp,{scaleY:1},200); timeLine.play(0,false); } private function onLabel(text:String):vo...

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

1070. touches一直为undefined [ 54%]

touches一直为undefined Laya.stage.on(Laya.Event.MOUSE_DOWN, this, onCtrlMoveRockerTouchDown); ......   function onCtrlMoveRockerTouchDown(e) {     console.log("onCtrlMoveRockerTouchDown()");     var touches = e.touches;     if(touches) {     ...取出前两个touch进行计算     } }...

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