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

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

1621. Laya2.0版本linkSprite3DToAvatarNode无法正常使用了,因为新插件导出的动画没有avatar文件了,导致挂载不上 [ 60%]

...priteToAnimationNode=function(sprite,nodeName,isLink){         if (this._avatar){ 这一步必须要有 avatar 文件,但是用新的2.0插件导出的角色不带avatar文件导致无法挂载,可在GameUI.ts 41行下断点调试进入查看。   var actor = Laya.Loader.getRes("res/Lay...

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

1622. 背景音乐问题 [ 60%]

...l){         Laya.SoundManager.playMusic(url, loop, Laya.Handler.create(this, onCompleteBgMusic, [loop, url]));     } } function onCompleteBgMusic(loop, url) {     if(loop > 0){         Laya.SoundManager.stopAll() ;         Laya.SoundManager.destroySound(url) ;     } } 2017-04-14...

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

1623. 跟视频做出现这个问题。怎么破 求解 [ 60%]

...ions;    //给男角色模型设定贴图动画          var manAni=this.roleMan.addComponent(SkinAnimations);          manAni.url="3d/man/hero.ani";          manAni.player.play();     2017-06-17 0 0 分享 微博 QZONE 微信 leeone 赞同来自: Warning: discard property,please ...

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

1624. laya.ui.Dialog_API3.0 [ 60%]

...景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { dialog = new Dialog_Instance();//创建一个 Dialog_Instance 类的实例对象 dialog。 dialog.dragArea = "0,0,150,50";//设置 dialog 的...

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

1625. 背景音乐音效问题 [ 60%]

...ya.Loader.SOUND}, } Laya.loader.load(fightLandlordRes, Laya.Handler.create(this, this.resLoaded)); Laya.SoundManager.playMusic("Lobby/Sound/BG309.mp3"); 2017-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Zz...

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

1626. 图片居中的问题 [ 60%]

...ite(); bg.loadImage("res/bg-480x720.jpg"); Laya.stage.on(Laya.Event.RESIZE,this,onResize);   function onResize() {     var scale,scaleX,scaleY;     scaleX = Browser.clientWidth/480;     scaleY = Browser.clientHeight/720;     scale = scaleX > scaleY ? scaleX : scaleY;     bg.scale(scale...

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

1627. Animation如何获取图集单帧实际宽高 [ 60%]

... 代码: ani.loadAtlas("res/atlas/hero_"+_model+".atlas",Handler.create(this,onLoad)); function onLoad():void { this.addChild(ani); var bounds:Rectangle = ani.getBounds(); Control.showLog(bounds.toString()); } 附件 : --> 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

1628. ProgressBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 60%]

...rogressBar.png", "../../../../res/ui/progressBar$bar.png"], Handler.create(this, onLoadComplete)); } /***加载资源完成***/ private function onLoadComplete():void { //实例化进度条 progressBar = new ProgressBar("../../../../res/ui/progressBar.png"); //设置宽度 progressBar.width = 400; /...

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

1629. 关于项目分包的问题?? [ 60%]

...it(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); this.stage.scaleMode = StageScaleMode.NO_SCALE; this.stage.align = StageAlign.TOP_LEFT; var loginView:LoginView = new LoginView(); this.addChild(loginView); } } } 提示:你需要确定4步 1、导入的fb(或 fd)项目...

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

1630. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 60%]

...OWN, spe, onMouseDown);             Laya.stage.on(Event.MOUSE_UP, this, onMouseUp);             Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp);   } private function onMouseDown(e:Event):void {             spe.startDrag(new Rectangle(0,0,800,800)); } 鼠标点击Sprite报...

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