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

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

1361. laya.d3.core.material.SkyBoxMaterial [ 49%]

...。 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

1362. 打包之后TEXT可以显示但是 加载其他资源时白屏 [ 49%]

...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

1363. 打包APP单机版,出现网络异常报错 [ 49%]

...:“网络异常,请与开发商联系”。 IDE版本1.6.2,打包时url那栏也清空了。 附件 : --> 2017-02-28 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 6 个回复 Laya_XS 赞同来自: 提供下示例,发...

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

1364. 目前在接某个平台的SDK,在加载模型文件时候,无法自动加载Unity导出的模型的关联文件 [ 49%]

...下,laya在读取.lh时候其他关联会自动加载,是依据 Laya.URL.basePath 基础路径,识别对应的文件来自动加载嘛? 顺带补充:代码就是用laya.loader.create的,测试环境都没有问题。 2019-01-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

1365. 2.0)js按照官方遮罩写的程序,无法正常执行, 请问怎么回事,代码见内。 [ 49%]

...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

1366. HttpRequest有一定几率触发error事件 Status:0 [ 49%]

...发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

1367. 关于微信小游戏音频控制的问题 [ 49%]

...的实例,我开始播放时是直接调用的 Laya.SoundManager.playSound(url, 1, new Laya.Handler(this, this.onComplete)); 但因为很多音效都是属于重复播放,而这个playSound()方法会返回一个SoundChannel,所以我就尝试用了一个dictionary把这些SoundChannel都保存起...

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

1368. Laya.Sprite loadImage 参数问题 [ 49%]

...习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

1369. 打包到头条IOS端异常: readFile callback [ 49%]

...如下: 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

1370. 分享:LayaAir下如何获取图集下的小图资源? [ 49%]

...擎 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