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

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

601. 微信小游戏资源总是加载旧的资源 [ 69%]

...18beta   我是用这样的方式加载的图集 Laya.loader.load([{url: "res/atlas/xxx1.json", type: Loader.ATLAS},         {url: "res/atlas/xxx2.json", type: Loader.ATLAS},          {url: "res/atlas/xxx3.json", type: Loader.ATLAS}], Handler.create(...   并且在这之前已经加...

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

602. Sprite3D的克隆(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 69%]

...=Sprite3DClone)) ```typescript { ...... //加载模型 Laya.loader.create("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/threeDimen/skinModel...

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

603. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 69%]

...t WebGL = Laya.WebGL; export class UI_Clip { private buttonSkin: string = "res/ui/button-7.png"; private clipSkin: string = "res/ui/num0-9.png"; private bgSkin: string = "res/ui/coutDown.png"; private counter: Clip; private currFrame: number; private controller: Button; constructor() { // 不支持W...

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

604. laya ts的版本管理功能介绍,示例代码写上去无效,请重新给个,谢谢 [ 69%]

...谢谢。 如 //设置版本控制类型为使用文件名映射的方式 ResourceVersion.type =ResourceVersion.FILENAME_VERSION; 2018-01-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 sulaya 赞同来自: http...

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

605. HTMLDivElement中图文混排怎么获取实际内容大小 [ 69%]

...,导致与其他控件的间隔错误,影响界面布局   例如:res/image/1.png 像素大小是 32x32 var imageHtml: Laya.HTMLDivElement = new Laya.HTMLDivElement(); imageHtml.innerHTML="<img src='res/image/1.png' />"; console.log("size: " + imageHtml.width + ", " + imageHtml.height);...

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

606. 用LayaAir引擎解析Tiled Map地图(TypeScript-2D进阶篇(TS)-扩展模块) [ 68%]

...击`保存`,存到**项目目录内**(本例为`项目根目录\bin\h5\res\TiledMap\`),如图3所示。 ![图3](img/3.png) (图3) ### 1.3 修改图集路径和复制Tiled资源 ##### 只是存为json文件还不够,我们还要更改image绝对路径为相对路径。 我们通过IDE,打...

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

607. 教你微信小游戏使用服务端gzip数据。 [ 68%]

... require('./pako_inflate.min.js'); wx.request({   url: '请求地址',   responseType: 'arraybuffer',    success(res) {     console.log(fromCharCode(Pako.inflate(new Uint8Array(res.data))));   } }); //处理中文 function decodeUTF8(arr,toType)  { //转为utf8编码字符串   let  str  ...

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

608. HIERARCHY_LOADED函数不回调 [ 68%]

...10:09 浏览: 695 关注: 2 人 yaorao • 2018-03-27 10:21 我现在是从res文件夹加载资源,要怎么去改变大小和位置呢? qian • 2018-03-27 10:28 你场景加载出来了么 yaorao • 2018-03-27 10:36 出来了,但是改变位置不知道怎么改。没有回调 qian • 201...

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

609. WaterPrimaryMaterial的使用 [ 68%]

...a.BaseMaterial = new WaterMaterial();         Laya.Texture2D.load("res/water1.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = tex; material.mainTexture = tex; })); Laya.Texture2D.load("res/FoamTexture.jpg", Laya.Handler.create(null, function(tex:Lay...

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

610. 适配模式在 showall 模式下火狐(PC)的sizeGrid 特别容易出现间隙 [ 68%]

...); })(); function setup() { var dialog = new Image(); dialog.skin = "../../res/ui/dialog (3).png"; dialog.sizeGrid = "40,40,40,40,0"; dialog.size(500,400); dialog.pos(165, 62.5); Laya.stage.addChild(dialog); } })();       在你们demo的基础上改的  pc的狐火下有问题  ie下应该也...

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