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

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

41. 用npm的protobuf导出的ts代码。然后用import { } from "" 运行到这里没反应,继续执行,也报错。 [ 69%]

...{ com} from "../libs/protobuf/area.js"; export function testProto():void { console.log("call testProto"); var ProtobufUtil = com.bee.protobuf; let msg = ProtobufUtil.ProtoArea.create(); let buffer = ProtobufUtil.ProtoArea.encode(msg).finish(); let decode = ProtobufUtil.ProtoArea.decode(buffer); cons...

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

42. 在微信分享成功的回调函数里,Laya播放音效失败。 [ 68%]

...o.visible = true; gameex.bar.destoyRankSprite()  this.nCountDown = 15; // console.log(gameex.snakeSelf) } })     //暂停 GameEx.prototype.pause = function () { console.log("停止播放音乐") Laya.SoundManager.stopMusic(); //停止游戏主循环 Laya.timer.clear(this, this.onLoop); //移除...

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

43. 关于zOrder层级问题 [ 68%]

关于zOrder层级问题  console.log(arr1.zOrder); //打印结果:3         console.log(this.target.zOrder); //打印结果:10   最后运行时舞台上显示的是arr1(sprite)在target(sprite)之上。 但是在编缉器上显示是正常的。 arr1对象是运行时动态添...

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

44. 带格式后缀的图片无法成功加载 [ 67%]

...aya.Handler.create(this, () => { let picTemp = Laya.Loader.getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y = 350 Laya.stage.addChild(nodee) }));上面这个图片无法正常显...

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

45. ui编辑器中使用龙骨动画问题 [ 67%]

...nhua • 2018-03-22 14:48 this.guge.once(Laya.Event.COMPLETE,this,()=>{ console.log('解析完成'); }); console.log(this.guge.templet); 这样是监听到Complete事件的,打印出来this.guge.templet结果为null liwenhua • 2018-03-22 14:52 使用U编辑器I做的这个好像没有使...

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

46. 定时器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...10; i++) Laya.timer.callLater(this, this.hideImage); } hideImage(): void { console.log("hideImage"); this.Image.visible = false; } } 5. 清理定时器 Laya.timer.clear:清理指定的定时器。定义如下: /** * 清理定时器。 * @param caller 执行域(this)。 * @param method 定时器...

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

47. 真机下运行帧率稳定 [ 67%]

...,this,this.update); } private update() { let dt = Laya.timer.delta / 1000; console.log("dt="+dt); } } 附件中图1是在iphone6上面运行打印的信息,图2是在模拟下运行打印的信息。   请问有人碰到过这个问题吗? 附件 : --> 2018-08-08 添加评论 免费帖 --> 分...

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

48. Laya2.3的promise有问题 [ 66%]

Laya2.3的promise有问题 连一个简单的 async test() { console.log('连打印都无法'); } 在微信小程序(真机)环境里面的打印都执行下去,都报错, 模拟器和浏览器都是正常的, 我试过IOS和android都会报错,真机会报错,执行进去 附件 : --> ...

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

49. Animation动画鼠标点击事件起作用? [ 66%]

...BtnClick); 我有设置了点击事件了,但在点击事件onBtnClick内console.log('s')没有打印出来。而挂机按钮的就可以打印得到。这是怎么回事? 2017-04-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

50. [LayaAir3]Pool对象池获取继承对象时会返回基类对象 [ 66%]

... Laya.Script { onStart() { let item1 = Laya.Pool.createByClass(TestClass); console.log('item1:', item1.type); Laya.Pool.recoverByClass(item1); let item2 = Laya.Pool.createByClass(TestClass2); console.log('item2:', item2.type); console.log(item1 == item2); } } export class TestClass { type = 0; } exp...

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