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

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

981. [分享]Dialog 点击边缘不关闭的 Demo示例 [ 54%]

...来自: 小丶kiss public close(type?:string, showEffect?:boolean):void{ if(type === "side"){ return; } super.close(type, showEffect) }  刚下载了楼上的zip。方法生效了。表示感谢。 把代码贴出来。免得别人再去下载了。 2018-11-29 1 0 分享 微博 QZONE 微信 callbac...

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

982. 八叉树与PixelLineSprite3D冲突 [ 54%]

...       //根据IDE设置初始化引擎               if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height, configs);     this.scene3d = new Laya.Scene3D();         Laya.stage.addChild(this.scene3d);         let ss = new Laya.PixelLi...

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

983. 3D场景跳转到2D场景问题 [ 54%]

...除3D场景,3D场景玩家 上面的代码: onCollisionEnter(other){ if(other.other.owner.name==="end"){ // this.owner.parent.removeSelf(); //删除自身场景 console.log(this.owner.parent) console.log(this.owner.parent.parent); //创建胜利的UI界面 let victoryScene=new VictoryScene(); La...

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

984. textinput动态修改宽度 会出现重叠的文字 [ 54%]

...s, this.input, [input]); private input(input:Laya.TextInput, event:Event){ if(input.text.length > 2){ input.width += 20; } } 请问怎么解决这个问题? 附件 : --> 2017-08-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

985. core.js的版本控制 [ 54%]

...erverList.json"),this.noVersionDic);//serverlist不加入版本控制 if(LayaAirProjectPack.isTrue(RunConfig.enableVersion)) LayaAirProjectPack.addFileToDicData(FileManager.getPath(RunConfig.sourcePath,RunConfig.versionFile),this.noVersionDic); } lxyfhl • 2018-10-30 15:24 发现是这个方...

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

986. 求救:proto解析 _i会变成I [ 54%]

...rotocol.proto", this.onLoaded); function onLoaded(err:any, root:any):void{ if (err) throw err; // Obtain message types var msgDefine:any = = root.lookup("protocols.packetc2g_select_gate"); var newMessage:any = msgDefine.create(); } 然后发现里面的成员名字都变了 “_i”变成了大写...

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

987. ui list 里面的元素不能点击两次 [ 54%]

...on onMouse(e:Event,index:Number):void { // TODO Auto Generated method stub if(e.type==Event.CLICK) { trace("click"); } } 2016-12-02 3 2 分享 微博 QZONE 微信 sunkehappy 赞同来自: @cuixueying 感谢提供方案,不过我还是想多说一句,selectHander最好是应该允许被调用多...

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

988. 3D骨骼动画卡在某一帧不再执行动作 [ 54%]

...ar animationclip:Laya.AnimationClip = this.animator.getClip(action);     if(animationclip){        this.animator.play(act);    } }   现象描述:角色正在挂机放技能打怪,当挂机时间过长后,角色卡在动作的某一帧上,不再执行动作播放。通过打断点...

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

989. laya获取图片像素后重新设置回去带有透明像素的地方显示有问题 [ 54%]

...   private LoadFinish(success:boolean):void     {         if(success)         {             let tex:any = Laya.Loader.getRes("res/FGUIMain/Common_atlas0.png");              let x = tex.bitmap.getPixels();              console.log("-...

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

990. 游戏运行过程中laya引擎里报错? [ 54%]

...这个报错是什么意思? SoundManager._recoverWebAudio=function(){ if(WebAudioSound.ctx&&WebAudioSound.ctx.state!="running") WebAudioSound.ctx.resume(); } 难道是音效问题?可是前面加载的时候我并没有加载音效啊。。 15818760256 • 2018-05-19 17:03 我...

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