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

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

1621. 背景音乐问题 [ 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

1622. 跟视频做出现这个问题。怎么破 求解 [ 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

1623. 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

1624. 嵌入字体 · LayaAir3.4 · 引擎文档 · LAYABOX [ 60%]

...t = "自定义嵌入字体"; label.fontSize = 30; label.color = '#FFFFFF'; this.Main.box2D.addChild(label); label.pos(30, 50) }); Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 2026-01-28 15:12:31 img{cursor:pointer}

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

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. 关于laya生成的canvas定位问题导致内部事件不正确 [ 60%]

...a.Event.MOUSE_DOWN, img, onStartDrag); function onStartDrag(){ console.log(this); clickIndex++; msgDiv.html('图片选中了' + clickIndex + '次'); // img.startDrag(); } // Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; // Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; }); </script> </html>...

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