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

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

931. 关于说明文档实战篇《微信飞机大战》的问题 [ 60%]

... mrtian • 2018-10-09 18:40 谢谢回复,不过“this.roleAni.on(Laya.Event.COMPLETE,this,this.onCompleteAni);”这个代码不应该是监听动画播放完成的吗 mrtian • 2018-10-09 18:55 工程代码我更新了,mp3音频文件加载失败的问题,不知道是为什么,之前加...

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

932. laya.ui里的tag不能赋值使用? [ 60%]

...ag值不能赋值sh使用吗?     masterbtn.tag = 0; masterbtn.on(Laya.Event.MOUSE_UP,this,this.onItemMaster); _proto.onItemMaster = function(params){ var btn = params.currentTarget; console.log("----------------------- ",btn.tag);//我赋值是0,但这里调用获取是2?? } 2017-11-20 ...

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

933. laya.ui.HSlider_API3.0 [ 60%]

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

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

934. laya.ui.VSlider_API3.0 [ 60%]

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

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

935. HttpRequest如何发送JSON数据 [ 60%]

... var logReq = new laya.net.HttpRequest();         logReq.once(Laya.Event.COMPLETE,this,this.onComplete);         logReq.send("http://127.0.0.1:3001/login", "username: 'lxd', password: 'lxd'",         'post', "json", null); 服务端无法获取数据 2017-09-06 4 条评论 免...

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

936. img点击事件。点击图片外,也触发了事件。请问怎么解决 [ 60%]

...dImage("res/img/m1.jpg",100,100,100,100);   ctn2.addChild(gq); gq.on(Laya.Event.CLICK,this,Is);   }  function Is(){ console.log(1); } 2018-08-06 0 0 分享 微博 QZONE 微信 叔年心~厌世 赞同来自: 点击图片的左上所有区域都触发点击事件?为什么 2018-08-06 0 1 分享...

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

937. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 60%]

...endChild(mapDiv);       // 适应窗口尺寸 refit(); Laya.stage.on(Event.RESIZE, this, refit);   // 初始化地图 map = new BMap.Map(mapDiv);   // 禁用部分交互 //map.disableDragging(); map.disableKeyboard(); map.disableScrollWheelZoom(); map.disableDoubleClickZoom(); map.dis...

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

938. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 60%]

...3d&group=Resource&name=GarbageCollection)) ```typescript function(e:Laya.Event):void { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene...

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

939. input text中文输入法时会调用3次INPUT事件 [ 60%]

...put text中文输入法时会调用3次INPUT事件 this.input_text.on(Laya.Event.INPUT, this, this.onInput);   //切换到中文输入法,输入数字,会调用三次,而英文输入法不会 private onInput(ipt: Laya.TextInput) {         console.log("这里会调用三次"); } 2017-05-15...

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

940. 3d项目base64 截图成绩有偏差 [ 60%]

...d有偏差,层级感觉反过来刷了一遍。    this.an_img.on(Laya.Event.MOUSE_DOWN, this, function (): void {                 console.log("点击");                 var htmlCanvas:Laya.HTMLCanvas = Laya.stage.drawToCanvas(1334, 750, 0, 0);//把精灵绘制到...

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