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

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

471. 简单粒子效果,发布成单机版apk在移动端安装运行,结果显示不出来 [ 64%]

...tp://layaair.ldc.layabox.com/demo/?Particle_T1  ) 主要就是: Laya.loader.load("SnowParticle.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON);           public function onAssetsLoaded(settings:ParticleSetting):void         {             sp = new Particle2...

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

472. fillTexture使用问题 [ 64%]

... number = 1188; static height: number = 594; constructor() { super(); Laya.loader.load("res/images/map_01.png", Laya.Handler.create(this, this.bgLoaded)); } bgLoaded(): void { let t: Laya.Texture = Laya.loader.getRes("res/images/map_01.png"); this.width = 1000; this.height = 500; this.graphics.fillT...

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

473. 怎么将图片转换成base64格式 [ 64%]

...么将图片转换成base64格式 如题。一直转换没成功。 Laya.loader.load("hall/111.png",Handler.create(this,function():void { var img:Texture = Laya.loader.getRes("hall/111.png"); var encode:String = Base64ImageTool.getBase64Pic(img); } 2017-06-13 添加评论 免费帖 --> 分享 微博...

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

474. Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 [ 64%]

Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 1、引擎和ide版本都是2.1.2 2、点击屏幕会绘制一个光圈特效 3、点击第1次加载资源使用后释放调用Laya.loader.clearTextureRes 4、再点第2次      1、图片代码中指示出必然会...

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

475. htmlCanvas 像素级操作 [ 64%]

htmlCanvas 像素级操作 function showSprite() { Laya.loader.load("../src/img/testImg.png",Laya.Handler.create(this,graphicsImg)); } function graphicsImg() { //临时sprite var img = new Laya.Sprite(); //img.graphics.drawTexture(Laya.loader.getRes(("../src/img/testImg.png"),0,0)); //获取图片...

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

476. 如何使用javascript版本的加载模式 [ 64%]

....json 那我先引用了LayaUI.max.all.js后,再加载ui.json!   Laya.loader.load([ { url: config.layerUIJson, type: Laya.Loader.JSON } ], Handler.create(this, function () { this.gameScenes = new ui.layer.gameScenesUI(); this.addChildren(this.gameScenes); })); 但页面上却没有任何内容...

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

477. 图片放在assets根目录下无法被引用成功,必须放到一个文件夹中 [ 64%]

...载了 var resArray = [ {url:"res/atlas/comp.json", type: Laya.Loader.ATLAS}, {url:"res/atlas/assets.json", type: Laya.Loader.ATLAS} ]; Laya.loader.load(resArray, Laya.Handler.create(null,LoadResComplete)); cuixueying • 2017-03-21 16:15 好的,谢谢你的建议,我们会...

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

478. 在native下 Laya.Browser.window.Blob不存在 [ 64%]

...ch.getCachePath()+"/test.png", png);保存到本地,然后再用laya.net.Loader加载,我刚才试了一下,加载报错,我不知道我这种方法可不可行。 test: function (base64Str, sprite) { var imageData = base64Util.decode(base64Str); var address = conch.getCachePath() + "/test.p...

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

479. 按钮交互实现 [ 64%]

...成atlas文件 需要在代码执行前先下载完毕这个图片集 Laya.loader.create("res/atlas/simbols.atlas",Laya.Handler.create(this,function(){ //创作你的代码 }); 2018-01-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

480. js进度,进度,js场景进度效果 [ 64%]

...SCREEN_HORIZONTAL; //显示帧频信息 Laya.Stat.show(); //预加载 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAssetLoaded), Laya.Handler.create(this, this.onLoading, null, false), Laya.Loader.ATLAS); }; //加载完成后 p.onAssetLoaded = function() {}; //加载进度 p.onLoading...

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