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

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

961. 我在Layasample主类中,检测键盘按下并输出一切正常,可是放到其他类里面则能检测到按键按下,却一直输出undefined [ 45%]

...EY_DOWN,LayaSample,Test);     }     function Test(e){         console.log(e.keycode);             }   按下按键后一直输出undefined,在入口类里面却能输出对应按键编号,是什么原因呢   2018-02-08 添加评论 免费帖 --> 分享 微博 QZONE 微信...

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

962. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 45%]

...ll, index) { cell.setImg(cell.dataSource); }   function onSelect(index) { console.log("当前选择的索引:" + index); } })(); 2018-07-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自...

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

963. UI-RadioGroup [ 45%]

...e.addChild(rg); return rg; } private onSelectChange(index: number): void { console.log("你选择了第 " + (index + 1) + " 项"); } } } new laya.UI_RadioGroup();package { import laya.display.Stage; import laya.ui.RadioGroup; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_RadioG...

来源: Laya_示例 发布时间: 20260303

964. UI-RadioGroup [ 45%]

...e.addChild(rg); return rg; } private onSelectChange(index: number): void { console.log("你选择了第 " + (index + 1) + " 项"); } } } new laya.UI_RadioGroup();package { import laya.display.Stage; import laya.ui.RadioGroup; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_RadioG...

来源: Laya2.0_示例 发布时间: 20260303

965. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 45%]

...est/1.png" ||data.url == "test/2.png"||data.url == "test/3.png"){ mark ++; console.log("------data.url:" + JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplet...

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

966. ja语言怎么样创建一个工具类在其他地方调用 [ 45%]

..._", _super); var _proto = Load_.prototype; _proto.run_Fast = function () { console.log("逻辑处理"); } return Load_; })(Laya.Sprite);我的代码,但是下面的继承位置Laya.Sprite这里不写会报错,我想请教下,我这个类仅有算法,应该怎么样写。 2018-07-05 添加评...

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

967. 骨骼动画-多纹理 [ 44%]

...onError); this.mFactory.loadAni(this.mAniPath); } private onError():void { console.log("error"); } private parseComplete():void { //创建模式为1,可以启用换装 this.mArmature =this.mFactory.buildArmature(1); this.mArmature.x = this.mStartX; this.mArmature.y = this.mStartY; this.mArmature.s...

来源: Laya_示例 发布时间: 20260303

968. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 44%]

...}); var dataTexture = Laya.DataTexture2D.create(imageData.data, 512, 128); console.log("data:" + imageData.data.length); sprite3DMat.diffuseTexture = dataTexture; sprite3D.meshRender.material = sprite3DMat; } //绘制文字到canvas,判断换行位置,和设置canvas高度 public canva...

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

969. tween有这个一个bug [ 44%]

...a.Ease.cubicIn,null,(i+1)*400); } point.visible=false; point.alpha = 0; // console.log(line); Laya.Tween.to(point,{x:point.x,y:point.y,alpha:1,update:Laya.Handler.create(point,function(){ this.visible = true; })},800,Laya.Ease.backOut,null,i*400); if(i%2==1 && i!=9){ point.x-=200; }else{ poi...

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

970. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 44%]

... if (Laya.loader.getRes(clipPath)) { this.loadedClips.push(clipPath); } } console.log(`[iceMonster] 成功加载 ${this.loadedClips.length} 个 .mc 剪辑`); })); } /* ------------------------------------------------- * 播放指定剪辑 * ------------------------------------------------- */ privat...

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