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

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

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

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

282. layacmd 问题 [ 58%]

....2" 能生成main.min.js 但是没压缩混淆 还有用工具导出的res\atlas 和 用工具导出的json 文件大小也会不一样   还有一个错误 不知道是啥玩意 附件 : --> 2017-10-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

283. layaIDE 2.3怎么转es5语法 [ 58%]

...个js代码文件 js版本 layaide ui组件发布后 res下没有对应的.atlas文件生成 layaIde调试新建代码不会生效 如何用LayaIde 开发微信分享功能?新手求助 layaIDE 无法启动 问题状态 最新活动: 2020-12-10 10:38 浏览: 208 关注: 1 人

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

284. 图集打包后使用Texture不显示,项目整个已经传上来了 [ 58%]

...: Array<any> = []; assets.push({ url: "res/start.json", type: Loader.ATLAS}); Laya.loader.load(assets, Handler.create(this, this.onComplete)); } private onComplete(): void { var texture:Texture = Laya.loader.getRes("start/sg.png"); var sp = new Laya.Sprite(); sp.graphics.drawTexture(texture,0,...

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

285. 更新到1.7.6beta之后,HBox有bug [ 58%]

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

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

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

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

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

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

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

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

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

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