大约有 1,262 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0055 秒)
Laya_社区(1082) Laya2.0_文档(59) Laya3.0_文档(51) Laya2.0_示例(27) Laya_示例(24) Laya3.0_api(17) laya_api(1) Laya2.0_api(1)
...新的代码目录,入口文件,额外的canvas画布。请问下咱们laya这边有时间表去支持这些新特性么? 2018-03-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 14 个回复 186*****260 赞同来自: ...
来源: Laya_社区 发布时间: 20180310
...上,微信开发工具里好好的,导入手机里就不行了- - Laya.loader.load(url, Handler.create(this, function () { var t = Laya.loader.getRes(url) var sp = new Sprite() sp.graphics.drawTexture(t, 0, 0, 80, 80) that.addChild(sp) var cMask = new Sprite() cMask.graphics.drawCircle(40, ...
来源: Laya_社区 发布时间: 20180710
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
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
...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
... "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
...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
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
...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
.... 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