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

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

261. 使用laya官方示例代码制作微信小游戏无法显示 [ 60%]

...nLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 new laya.UI_Label(); }   上图为在layaIDE中的显示效果。   不知道具体是什么原因,希望...

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

262. native项目中如何将图片文件的二进制数据转成 Texture? [ 59%]

...Browser.window.URL.createObjectURL(blob);                 Laya.loader.load(url, Handler.create(t, t.onComplete, [params]), null, Loader.IMAGE);   来将二进制文件中的图片文件数据转成Texture。   但目前在尝试将项目转native,想问下native中如何将获取的...

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

263. 有没有CSV读取类 [ 59%]

...上 调用 Laya.MiniAdpter.downLoadFile缓存文件之后。再调用Laya.loader.create,不会自动去读取缓存文件 zip更新模式缓存是怎么读取的?? layabox里面怎么读取解压zip压缩包? 资源读取有没有快捷一点的方式,现在的load要手打url,能不能像...

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

264. timeline播放完成Bug [ 59%]

...32628"; const monkey1Path = "https://layaair2.ldc2.layabox. ... 3B%3B Laya.loader.load(monkey1Path, Laya.Handler.create(this, function() { let monkey = Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.Ti...

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

265. 微信飞机大战中“开始页面”逻辑功能关于js继承问题 [ 59%]

...剩余游戏资源、音乐,加载完成与加载进度回调方法 Laya.loader.load(assetArr,Handler.create(this,onComplete),Handler.create(this,onProgress)) } return GameStart(); })();   2017-11-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

266. discard property,please use transform's property instead [ 59%]

...耗性能         directionLight.shadowPCFType = 3;         Laya.loader.create([             "res/plane.lh",             "res/LayaMonkey.lh"         ], Laya.Handler.create(this, onComplete));         var _quaternion = new Laya.Quaternion();         Laya.timer.frameLoo...

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

267. swf在layaairts里播放的问题,播放不了,swf在群文件star.swf [ 59%]

...文档的例子试了不行 // 程序入口 module laya {     import Loader = Laya.Loader;     import Handler = Laya.Handler;     export class Loader_MultipleType {         private ROBOT_DATA_PATH: string = "res/swf/star.swf"; private ROBOT_DATA_PATHS: string = "res/swf/star.json...

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

268. 图集动画必须要有这一段代码吗 [ 59%]

图集动画必须要有这一段代码吗 Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); 2017-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来...

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

269. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 59%]

...与内容相关的链接 提交 1 个回复 ssqhu 赞同来自: qihei Laya.loader.load("res/atlas/test0.png", Handler.create(this, function():void    {     var t:Texture = Laya.loader.getRes("res/atlas/test0.png");     ape = new Sprite();     var matrix:Matrix = new Matrix();     ...

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

270. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 59%]

...加 每张图片都是256*256大小的地图块 this.isShow = true; Laya.loader.load(name,Laya.Handler.create(this,this.drawImg)); }  drawImg():void { var texture:Laya.Texture = Laya.loader.getRes(this.name); this.texture = texture; }  clearImage(): void{ if (this.name != "") { this.isShow = false...

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