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

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

771. 绘制能力 · LayaAir3.3 · 引擎文档 · LAYABOX [ 51%]

..., offset || Point.EMPTY, color)); else return null; } 代码示例: Laya.loader.load("resources/layaAir.png").then((res: Laya.Texture) => { let sp = new Laya.Sprite(); // 绘制填充纹理 sp.graphics.fillTexture(res, 0, 0, 500, 500, "repeat"); this.owner.addChild(sp); }); 运行效果: (...

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

772. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 51%]

...map.json';  /**地图 */ map: Laya.TiledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) }  private onComplete(){ this.map = new Laya.TiledMap(); this.map.createMap(this.MAP_URL, new Laya.Rectangle(0,0,Laya.stage.width, Laya.stage.height), new ...

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

773. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 51%]

...init(1024, 768, WebGL); Stat.show(0, 0); Laya.stage.bgColor = "#fff"; Laya.loader.load("assets/images/color1.png", Handler.create(this, __loadImageHandler)); } private function __loadImageHandler():void { _colorSpr = new Sprite(); _colorTex = Laya.loader.getRes("assets/images/color1.png"); _colorSpr...

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

774. 关于资源版本号的问题咨询 [ 51%]

...现在manifest.json中。此时在游戏中加载完atlas文件后会执行Loader.as的onLoaded中的如下代码 }else{ for (name in frames) { obj = frames[name];//取对应的图 tPic = pics[obj.frame.idx ? obj.frame.idx : 0];//是否释放 [i][b]url = URL.formatURL(directory + name); [/b][/i] cac...

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

775. load方法加载cdn上面的图片资源的时候直接报了跨域不同源的问题,怎么破? [ 51%]

... ]; this.isFirst = true; console.log('Gzdaze='); console.log(Gzdaze); Laya.loader.load(Gzdaze.dialogList, Handler.create(this, this.startLoaded)); 代码是这样的 报错 Access to Image at 'http://caifu-1251177394.file.myqcloud.com/beta/book/bookLaya/img/progressBar$bar.png' from origin 'http://b...

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

776. 微信小游戏中iPhoneX的适配问题 [ 51%]

...uot;../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.a...

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

777. 目前在接某个平台的SDK,在加载模型文件时候,无法自动加载Unity导出的模型的关联文件 [ 51%]

...别对应的文件来自动加载嘛? 顺带补充:代码就是用laya.loader.create的,测试环境都没有问题。 2019-01-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 155*****949 赞同来自: 目...

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

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

...ya.ResourceVersion.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();    ...

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

779. 我用as3调试的matter.js,刚体发生碰撞后不会旋转,我的代码在附件里 [ 50%]

...a.display.Sprite;     import laya.display.Stage;     import laya.net.Loader;     import laya.renders.Render;     import laya.utils.Browser;     import laya.utils.Handler;     import laya.utils.Stat;     import laya.webgl.WebGL;     import wawaji.Wawaji;     /**      * ....

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

780. 图片遮罩大小跟设置不一致 [ 50%]

...adImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("https://s2.d2scdn.com/2017/12/ ... ot%3B, Handler.create(this, function() { var t = Laya.loader.getRes("https://s2.d2scdn.com/2017/12/ ... 6quot;); var ape = new Sprite(); ape.scaleX = 0.5 ape.scaleY = 1 ape.grap...

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