大约有 1,653 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0045 秒)
Laya_社区(1154) Laya3.0_api(151) Laya2.0_api(106) laya_api(97) Laya2.0_文档(85) Laya3.0_文档(42) Laya2.0_示例(9) Laya_示例(9)
...。 BaseMaterial cloneTo(destObject:*):void 克隆。 BaseMaterial load(url:String, complete:Handler):void[static] 加载材质。 BaseMaterial setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods Show Inherited Protected Methods Show Inherited Protected Metho...
来源: Laya2.0_api 发布时间: 20190513
...t"; Laya.stage.screenMode = "horizontal"; var asset = []; asset.push({ url: ["../res/image/bg.png"], type: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.getRes(".....
来源: Laya_社区 发布时间: 20180808
...:“网络异常,请与开发商联系”。 IDE版本1.6.2,打包时url那栏也清空了。 附件 : --> 2017-02-28 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 6 个回复 Laya_XS 赞同来自: 提供下示例,发...
来源: Laya_社区 发布时间: 20170228
...下,laya在读取.lh时候其他关联会自动加载,是依据 Laya.URL.basePath 基础路径,识别对应的文件来自动加载嘛? 顺带补充:代码就是用laya.loader.create的,测试环境都没有问题。 2019-01-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20190102
...https://ldc2.layabox.com/doc/?nav=zh-js-1-3-1 //data.head_img:头像的url路径 head_img.loadImage(data.head_img, Laya.Handler.create(head_img, function () { this.height = this.width = 77; var cMask = new Laya.Sprite();//创建遮罩对象 var r = 38.5; /...
来源: Laya_社区 发布时间: 20181119
...发error事件 Status:0 在微信开发者工具中,调用 request.send(url + method, data, "post", "json", ["Content-Type","application/json","Authorization", "Bearer " + PlayerModel.Instance.token]); 大部分时候正常 但有20%的几率会触发error事件回调,收到的message为"fa...
来源: Laya_社区 发布时间: 20180330
...的实例,我开始播放时是直接调用的 Laya.SoundManager.playSound(url, 1, new Laya.Handler(this, this.onComplete)); 但因为很多音效都是属于重复播放,而这个playSound()方法会返回一个SoundChannel,所以我就尝试用了一个dictionary把这些SoundChannel都保存起...
来源: Laya_社区 发布时间: 20180628
...习laya,遇见个问题。api上对loadimage的描述是: loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null) 官方文档也是这么用的:http://ldc.layabox.com/doc/?nav=zh-ts-1-3-2 我把文档的代码完整复制到vscode里...
来源: Laya_社区 发布时间: 20200522
...如下: static readFile(filePath, encoding = "utf8", callBack = null, readyUrl = "", isSaveFile = false, fileType = "", isAutoClear = true) { let preFilePath = filePath; filePath = Laya.URL.getAdptedFilePath(filePath); if (encoding == null || encoding == "") { ...
来源: Laya_社区 发布时间: 20191204
...擎 Laya.init(600, 800); //加载引擎需要的资源 Laya.loader.load([{url:"res/atlas/atlas_res.json",type:Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //获取图集下的单张小图 var texture:Texture=Laya.loader.getRes("atlas_res/01.png"); var sp:Spri...
来源: Laya_社区 发布时间: 20160707