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

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

71. untiy导出的粒子特效有播放完成的回掉吗? [ 90%]

...ld(Sprite3D.load("fff.lh")) as Sprite3D; wjqs.once(Event.HIERARCHY_LOADED, this, function():void { var aaa:ShurikenParticleSystem = wjqs.getChildAt(0).getChildAt(0).particleSystem; aaa.on(Event.COMPLETE, this, function() { trace("COMPLETE callback!!"); }); }); 2017-05-15 0 1 分享 微博 QZONE ...

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

72. 鼠标交互-Hold [ 90%]

...bgColor = "#232628"; Stat.show(); Laya.loader.load(apePath, Handler.create(this, this.createApe)); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(apePath); let texture = Laya.loader.getRes(apePath); this.ape.pivot(texture.width / 2, textur...

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

73. 超过最大调用堆栈大小 [ 89%]

...      output = socket.output;         socket.on(Event.OPEN, this, this.onSocketOpen);         socket.on(Event.CLOSE, this, this.onSocketClose);         socket.on(Event.MESSAGE, this, this.onMessageReveived);         socket.on(Event.ERROR, this, this.onConnectErr...

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

74. 鼠标交互-Hold [ 89%]

...; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, createApe)); })(); function createApe() { // 添加一只猩猩 ape = new Sprite(); ape.loadImage(apePath); var texture = Laya.loader.getRes(apePath); ape.pivot(texture.width / 2, texture.height / 2); ape.pos(Laya.stage...

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

75. 事件管理 · LayaAir3.0文档 · LAYABOX [ 89%]

...ble(): void { console.log("IndexRT onEnable") //侦听ui按钮点击事件 this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开UI场景示例 console.log("uiBtn"); Laya.Scene.open("scenes/UiMain.ls"); }); //侦听物理按钮点击事件 this.phyBtn.on(Laya.Event.CLICK, this, () =&g...

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

76. 网络和格式-Socket [ 89%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.connect(); } connect() { const Socket = Laya.Socket, Event = Laya.Event; socket = new Socket(); //socket.connect("echo.websocket.org", 80); socket.connectByUrl("ws://echo.websocket.org:80"); output = socket.output; socke...

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

77. 计时器-延迟执行 [ 89%]

...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { const Event = Laya.Event; let vGap = 100; this.button1 = this.createButton("点我3秒之后 alpha - 0.5"); this.button1.x = (Laya.stage.width - this.button1.width) / 2; this.button1.y = (Laya.stage....

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

78. 一个按钮注册两次点击事件,两个事件都会执行 [ 89%]

...uojianfei 赞同来自: pc测试啊,一个按钮注册两次必现啊   this.sureBtn.on("click",this,this.onSurebtn); this.sureBtn.on("click",this,this.enterGame);   都会执行啊 2017-04-11 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

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

79. 骨骼动画进阶(TypeScript-2D进阶篇(TS)-动画进阶) [ 89%]

...ructor() { Laya.WebGL.enable(); Laya.init(1000, 900); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("res/spine/goblins/goblins.sk"); } onError() { con...

来源: Laya2.0_文档 发布时间: 20210715

80. laya拖拽在部分机型(一部XR)StageX不对 [ 89%]

...部XR)StageX不对 //注册事件  Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseEvent);  Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_OUT, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseEvent); //鼠标yi'...

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