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

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

281. animate 动画播放 怎么把攻击 开火 合起来播放 [ 58%]

... //加载动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/imgs/role/wp116.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //添加到舞台 Laya.stage.addChild(this.roleAni); //创建动画模板dizziness Laya.Animation.createFrames(t...

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

282. Panel使用文档(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 58%]

...引擎 Laya.init(800,600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例化Panel组件 var panel:Panel = new Panel(); //给panel添加背景色 panel.graphics.drawRect(0,0,100,100,"#ffcccc"); //给panel...

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

283. 设置自动竖屏后 打包APP 安装到手机后显示黑屏 不设置自动竖屏又正常 [ 58%]

...面单独建立文件夹打包)             Laya.loader.load("res/atlas/gameUI.atlas",Handler.create(this,this.gameStart));                                   } 2018-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

284. 树状列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 58%]

...建完毕,此方法只执行一次 onAwake(): void { var res: any[] = ["atlas/comp/vscroll.png", "atlas/comp/vscroll$bar.png", "atlas/comp/vscroll$down.png", "atlas/comp/vscroll$up.png", "resources/tree/clip_selectBox.png", "resources/tree/clip_tree_folder.png", "resources/tree/clip_tree_arrow.png...

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

285. 超4M后UI资源怎么分包,文档里只有代码分包 [ 58%]

...怎么分包,文档里只有代码分包 图片资源都是放在bin/res/atlas里面,怎么把他们放在分包里面,然后可以在主包访问,另外我在1.0找不到Laya.MiniAdpter.subNativeFiles ,这个函数,2.0就有,什么原因 2018-11-15 添加评论 免费帖 --> 分享 ...

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

286. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 57%]

...n.FILENAME_VERSION);  function beginLoad(){     Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(null, onLoaded)); }*/  function updateItem(cell, index) { cell.setImg(cell.dataSource); }  function onLoaded(): void {      var rankList = new Laya.List();      //rankList.sc...

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

287. Android替换游戏启动logo看不到设置的图片 [ 57%]

....loading(50); } //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:TestView = new TestView(); Laya.stage.addChild(testView); __JS__("if(window.conch)") ...

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

288. 是否启用版本管理,启用后,会重命名变化的文件(Laya如何判别变化?) [ 57%]

...没有删除资源的情况下-------------------------- 2.复合文件(atlas,swf等),如果atlas里的内容和之前的atlas内容不符 3.versin.json被删除了,虽然其他文件都在,但是也会全部重新生成新的文件名。   是这样吗?   至于以后生成新的文...

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

289. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 57%]

...ce(); })(); function loadResource(){ var resourceArray = [ { url:"res/atlas/comp.atlas" , type : Laya.Loader.ATLAS} ]; Laya.loader.load(resourceArray,Laya.Handler.create(null,loadResourceComplete)); } function loadResourceComplete() { Laya.stage.addChild(new LoginView()); } })(); feiguangf...

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

290. 当使用Image作为一个对象的遮罩时,设置Image的ScaleX为0时遮罩失效! [ 57%]

...GameMain{ constructor() { Laya.init(1280,720); Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loaded,null)); } private loaded():void{ var img:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(img); var imgMask:Laya....

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