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

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

871. 3D模型无法用Tween类吗 [ 52%]

3D模型无法用Tween类吗 //载入并显示模型 var layaMonkey: Laya.Sprite3D =Laya.Sprite3D.load("LayaMonkey/LayaMonkey.lh") as Laya.Sprite3D; scene.addChild(layaMonkey); layaMonkey.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); layaMonkey.transform.localPosition = new Laya.Vecto...

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

872. 关于微信小游戏关系链的问题 [ 52%]

...新的代码目录,入口文件,额外的canvas画布。请问下咱们laya这边有时间表去支持这些新特性么? 2018-03-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 14 个回复 186*****260 赞同来自: ...

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

873. UI界面加载有哪些回调方法可用 [ 52%]

UI界面加载有哪些回调方法可用 Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoad...

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

874. 真机下运行帧率不稳定 [ 52%]

...slow模式都有这个问题  class Scene_Test { constructor() { super(); Laya.timer.frameLoop(1,this,this.update); } private update() { let dt = Laya.timer.delta / 1000; console.log("dt="+dt); } } 附件中图1是在iphone6上面运行打印的信息,图2是在模拟下运行打印的信息。 ...

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

875. 鼠标 MOUSE_DOWN Event 回来的信息不符合 [ 52%]

...n createSprite() { picture = new Sprite(); picture.loadImage(picturePath); Laya.stage.addChild(picture); var texture = Laya.loader.getRes(picturePath); picturePath.pivot(texture.width / 2, texture.height / 2); picture.x = Laya.stage.width / 2; picture.y = Laya.stage.height / 2; picture.scale(cardSca...

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

876. 微信小游戏中不能加载proto文件 [ 52%]

... "res/protobuf/Login.proto"   具体代码: (function () { var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; console.log("!____________________________________")  var ProtoBuf = Browser.window.protobuf;  // Laya.init(550, 400);  ProtoBuf.load("res/protobuf/Login...

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

877. Uncaught Error: Laya3D:unknown mesh version [ 52%]

Uncaught Error: Laya3D:unknown mesh version LayaAir2.1.0beta1  Unity 5.6.6f2 (64-bit) 插件版本也是从对应版本下载的 导出ls文件后,laya里面代码加载 Laya.loader.create("LayaScene_yuanwenj2/Conventional/yuanwenj2.ls", Laya.Handler.create(this, function() {          ...

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

878. 求解关于跨域的具体操作 [ 52%]

...lication/json"); 还是说用参考代码里的HttpRequest() var xhr = new Laya.HttpRequest(); xhr.http.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, loader]); xhr.once(Laya.Event.ERROR, this, this.errorHandler);...

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

879. as3代码编译错误.100%重现,有测试代码.结果影响很大. [ 52%]

.... addFootPrintMagic(super.x,super.y, now); 被编译成addFootPrintMagic(laya.display.Sprite.prototype.x,_super.prototype.y,now); 下面是我写的测试代码,也被编译错了. trace(super.x,super.y); 被编译成了console.log(laya.display.Sprite.prototype.x,Laya.superGet(GameUnit,this,'y')); ...

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

880. ios load后 声音播放问题 [ 52%]

... = []; resurls.push({url:"http://192.168.6.132:8900/bin/comp/tap.mp3",type:Laya.Loader.SOUND});Laya.loader.load(resurls, Handler.create(this, onLoaded), Handler.create(this, onLoading, null, false)); function onLoaded(){ console.log(Laya.loader.getRes(src)); }   在chrome,安卓下都是正常的...

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