大约有 1,584 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
Laya_社区(1113) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(50) Laya3.0_api(11) Laya2.0_api(2)
...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
...=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
...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
...谢谢。 如 //设置版本控制类型为使用文件名映射的方式 ResourceVersion.type =ResourceVersion.FILENAME_VERSION; 2018-01-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 sulaya 赞同来自: http...
来源: Laya_社区 发布时间: 20180131
...,导致与其他控件的间隔错误,影响界面布局 例如: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
...击`保存`,存到**项目目录内**(本例为`项目根目录\bin\h5\res\TiledMap\`),如图3所示。  (图3) ### 1.3 修改图集路径和复制Tiled资源 ##### 只是存为json文件还不够,我们还要更改image绝对路径为相对路径。 我们通过IDE,打...
来源: Laya2.0_文档 发布时间: 20210715
... 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
...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
...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
...); })(); 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