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

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

541. laya微信小游戏加载外部素材失败 急急急 [ 64%]

...es/models/item/item.lh", clas: Laya.Sprite3D, priority: 1 } ]; Laya.loader.create(resource, Laya.Handler.create(this, onComplete), Laya.Handler.create(this, onLoading)); } function onLoading(progress){ console.log("加载进度: " + progress); } function onComplete(){ console.log('onComplete'); wx.s...

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

542. Laya.util.Ease这个类是用来配合Tween的,可是怎么使用?没有任何资料啊。 [ 64%]

...ease:*=Ease.backIn(100,100,100,100); Tween.to(sp,{x:400},1000,ease,Handler.create(this,onTween)); 2017-01-05 0 0 分享 微博 QZONE 微信 shaotianhk 赞同来自: var ease:*=Ease.backIn(100,100,100,100); 这句是什么鬼,放在js里直接报错 2018-04-02 0 0 分享 微博 QZONE 微信 为什...

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

543. 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 [ 64%]

...</script>2. 在 as 代码中加入如下函数: private static var createTextureCallBack:Function; public static function createTexture(s:Sprite,callback:Function,callbackThis:Object):void{ createTextureCallBack = callback; var htmlCanvas:HTMLCanvas = s.drawToCanvas(512,512,0,0); var realCan...

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

544. WXOpenDataViewer 微信开放数据域 是不是不能响应鼠标拖动事件呢? [ 64%]

... 里面 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); 和 Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.create(this, this.onConfigLoaded)); 都要删掉。 内涵tv何吓吓 • ...

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

545. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 64%]

...lob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObjectURL(blob); document.body.appendChild(img); } } xhr.send(); ``` 上面这个方法是...

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

546. 关于laya图片资源缓存的问题 增量更新文件缓存 [ 64%]

..., {read: false}).pipe(clean()) }) /** 创建文件hash清单 */ gulp.task('create:hash',['clean'], () => { return gulp.src([ './server/static/**/*.atlas', './server/static/**/*.png', './server/static/**/*.mp3' ]) .pipe(hash({ template: '<%= name %><%= ext %>?version=<%= hash %>'...

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

547. 微信小游戏加载外部json可以加载成功,但是加载外部图片就不行,没有任何反应 [ 64%]

...iyeyou.net/ ... ot%3B, "https://xxdzz.shoujiyeyou.net/ ... ot%3B], Handler.create(this, this.onLoaded), null, "json");   Laya.loader.load(["https://xxdzz.shoujiyeyou.net/mmphp/19.png"], Handler.create(this, this.nlll), null, "image");   一样的代码,上面加载json就可以,下面加载ima...

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

548. laya.maths.Rectangle [ 64%]

...ngle 复制 source 对象的属性值到此矩形对象中。 Rectangle  create():Rectangle[static] 创建 Rectangle  equals(rect:Rectangle):Boolean 检测传入的 Rectangle 对象的属性是否与当前 Rectangle 对象的属性 x、y、width、height 属性值都相等。 Rectangle  inters...

来源: Laya2.0_api 发布时间: 20190513

549. Unity插件与LAYAAIR加载的天空盒子BUG与修改方法 [ 64%]

...oader,0,ltcWeight,1.0);             var processHandler=Handler.create(null,Laya3D._onProcessChange,[loader,ltcWeight,6 / 7],false);             Laya3D._innerFourthLevelLoaderManager.load(urls,Handler.create(null,Laya3D._onTextureCubeImagesLoaded,[loader,urls,processHandler]),...

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

550. 设置滤镜(TypeScript-LayaAir基础篇(TS)-位图) [ 64%]

...l"; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.ApePath, Handler.create(this, this.setup)); } private setup(): void { this.normalizeApe(); this.makeRedApe(); this.grayingApe(); } private normalizeApe(): void { var originalApe: Sprite = this.createApe(); this.apeTexture = Laya.loader.getRes...

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