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

大约有 717 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0041 秒)

391. 请问用laya的tab模板创建的tab,为啥没有点击事件啊?而且tab标签点击后没有一直处于按下状态 [ 65%]

...ader = laya.net.Loader; var UI; Laya.init(600, 400); Laya.loader.load("res/atlas/template/Tab栏.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass", MyBootPage2UI);     UI = new MyBootClass();     Laya.stage.a...

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

392. Panel使用文档(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 65%]

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

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

393. 使用blendMode=add模式时,某些手机上无法正常显示,出现黑底 [ 65%]

... var image:Image = new Image();             image.skin = "res/atlas/clanwar_bg.jpg?" + Math.random();             Laya.stage.addChild(image);              var index:int = 0;             Laya.stage.timerLoop(1, this, function():void{index++;image.alph...

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

394. 资源发布目录以及efc动效获取资源路径的问题。 [ 65%]

...liuhang_1988 • 2017-11-22 11:28 我现在是资源发布目录在bin/res/atlas, html发布目录在bin/res。但是分离模式的efc文件会把json文件输出到bin目录,part文件输出到bin/res。而且,part的资源默认获取路径也是在bin目录下,我是想这个json也输出...

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

395. 更新到1.7.6beta之后,HBox有bug [ 65%]

... lusky 赞同来自: Laya.init(1200, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { ca...

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

396. 如何让发布后的H5加载资源用src或href指向本地路径,而不是网络请求 [ 65%]

... to XMLHttpRequest at 'file:///E:/Game-SuperMary/SuperMary/release/web/res/atlas/option.atlas' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.   load(url) {             var ...

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

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

...引擎 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

398. 关于as版的Animation.createFrames()不能工作? [ 65%]

...UISample() { Laya.init(1540, 990); Laya.Stat.show(); Laya.loader.load("res/atlas/war.json", Laya.Handler.create(this, this.onLoaded), null, Laya.Loader.ATLAS); Laya.loader.on(Event.ERROR, this, onError); } protected function onError(error:String):void { trace(error); } protected function onLoaded():...

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

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

... //加载动画图集,加载成功后执行回调方法 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

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

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

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