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

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

21. 图集打包与动画 [ 90%]

...t还有loop参数,控制台就会报错,但是动画能正常播放。 this.ani.play(0,true,'XiuXian');控制台报错:ani not found: BlueEmoji.ani#XiuXian。但是游戏中动画正常播放了~~不知道是不是我那里姿势不对。但是如果this.ani.play('Normal'); Normal是默认动...

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

22. 网络和格式-GET [ 90%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.connect(); this.showLogger(); } connect() { const HttpRequest = Laya.HttpRequest, Event = Laya.Event; hr = new HttpRequest(); hr.once(Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Event.COMPLETE, this, this....

来源: Laya2.0_示例 发布时间: 20251130

23. box2d引擎报错问题 [ 89%]

..._update (laya.core.js:21262)   相关逻辑代码如下: moveSuccess(){ this.owner.removeSelf(); Laya.Pool.recover("flyCat", this.owner) } onTriggerEnter(other: any, self: any, contact: any): void { if (other.label === "cloud") { Laya.Tween.clearAll(this._sp) let effect: Laya.Animation = Laya.Poo...

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

24. timeLine的问题,怎么在多个addLabel之间改变图片skin? [ 88%]

timeLine的问题,怎么在多个addLabel之间改变图片skin? this.timeLine.addLabel("move",0).to(img,ani,500,null,0) .addLabel("ani1",500).to(img,ani1,220,null,0) .addLabel("ani2",220).to(img,ani2,220,null,0) 如上我创建了三个addLabel,但是我想在第一个addLabel完成了,就...

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

25. laya接入fairyGUI的时候资源加载方式? [ 87%]

...es/MainMenu.fui", type: laya.net.Loader.BUFFER }     ], Handler.create(this, this.onLoaded)); 资源加载能用其他方式吗? 不可能一个一个加载吧 2019-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...

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

26. 绘制能力 · LayaAir3.3 · 引擎文档 · LAYABOX [ 86%]

...ny = null, lineWidth: number = 1, percent?: boolean): DrawRectCmd { return this.addCmd(DrawRectCmd.create(x, y, width, height, fillColor, lineColor, lineWidth, percent)); } 代码示例: let sp = new Laya.Sprite(); //画矩形 sp.graphics.drawRect(20, 20, 100, 50, "#ffff00", "#00ff00", 5, false); ...

来源: Laya3.0_文档 发布时间: 20251010

27. Laya.MiniAdpter.downLoadFile缓存的文件无法读取的问题 [ 86%]

...e) { var args = {url:url, handler:null}; var handler = Laya.Handler.create(this, this.OnDownloadFileInWxOk, [args], false); args.handler = handler; Laya.MiniAdpter.downLoadFile(url, null, handler); } else { this.DoLoadData(url); } } protected DoLoadData(url:string):void { Laya.loader.load(url, Laya....

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

28. 射线检测报错,outHitInfo.sprite3D=null; [ 86%]

... Laya.Camera; private scene: Laya.Scene;  public _load(owner : any):void{ this.scene = owner; this.camera = this.scene.scene.getChildByName("Main Camera") as Laya.Camera; console.log("当前摄像机的名字是:" + this.camera.name); }  public _start(state:Laya.RenderState):void{ this.ray = new...

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

29. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 85%]

...a.TextArea; private text: Laya.Label = new Laya.Label(); onAwake(): void { this.initUI(); this.connect(); } /** * 初始化UI */ private initUI(): void { this.showLogger(); this.text.text = "请查看源码和调试信息,了解如何使用"; this.text.color = "#FFFFFF"; this.text.font = "Impact";...

来源: Laya3.0_文档 发布时间: 20251010

30. 网络和格式-POST [ 85%]

...})(); function connect() { hr = new HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); hr.send('http://xkxz.zhonghao.huo.inner.layabox.com/api/getData', 'name=myname&psword=xxx', '...

来源: Laya_示例 发布时间: 20251130