大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0096 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...null Laya.loader.load("res/dreams.mp3",Laya.Handler.create(this,function(){ dreamsSound = Laya.SoundManager.playMusic("res/dreams.mp3") })) let mainSound:Laya.SoundChannel = null; this.btn_sound.on(Laya.Event.C...
来源: Laya_社区 发布时间: 20190716
....window.open("http://baidu.com"); } Laya.stage.on(Event.KEY_DOWN, this, OnDown);//正常 Laya.stage.on(Event.MOUSE_DOWN, this, OnDown);//被拦截 Laya.stage.on(Event.CLICK, this, OnDown);//被拦截 在页游端中只有Event.KEY_DOWN事件按下键盘可以正常跳转网页。而监听...
来源: Laya_社区 发布时间: 20181227
...net/ ... ot%3B, "https://xxdzz.shoujiyeyou.net/ ... ot%3B], Handler.create(this, this.onLoaded), null, "json"); Laya.loader.load(["https://xxdzz.shoujiyeyou.net/mmphp/19.png"], Handler.create(this, this.nlll), null, "image"); 一样的代码,上面加载json就可以,下面加载image就...
来源: Laya_社区 发布时间: 20191024
...报错。(这就有点恐怖) 注:已经是 for (var i = 0, n = this.length; i < n; i++) 赋值了。 没时间去仔细改,现在用暴力方式改一下: if (index !== -1){ console.log("SimpleSingletonList:" + element + " has in SingletonList."); this.clear(); ...
来源: Laya_社区 发布时间: 20200910
...1.0]怎么给动态添加的组件 添加附加脚本 我在代码中用 this.image = new Laya.Image(); 添加的图片组件,怎么给this.image添加附加脚本, 官网的文档上只是介绍了在UI界面把脚本文件直接拖动到组件上,但是用代码动态添加的组件就...
来源: Laya_社区 发布时间: 20181023
... x:1 ,y:2 ,update:new Laya.Handler(box,function(){ this.transform.position = this.potOld; }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){ console.log("complete"); }),ConstValue.animationDelay); 无法直接设置原因...
来源: Laya_社区 发布时间: 20180112
...votX = sprite.width * 0.5; sprite.pivotY = sprite.height * 0.5; sprite.x = this.width * 0.5; sprite.y = this.height * 0.5; this.addChild(sprite); Laya.Tween.to(sprite, {scaleX:1.5, scaleY:1.5, alpha:0}, 5000); 2018-07-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20180708
...let url = "http://10.1.1.123:9090/pgame/s ... 3B%3B Laya.timer.loop(30000, this, ()=>{ let hr = new Laya.HttpRequest(); hr.http.timeout = 3000; hr.http.ontimeout = function(){console.log("http timeout test: timeout")}; hr.once(Laya.Event.COMPLETE, this, ()=>{console.log...
来源: Laya_社区 发布时间: 20171016
... var fullPath = node.fullPath; var keyframeNodeOwner = this._keyframeNodeOwnerMap[fullPath]; let mat = false; if (keyframeNodeOwner) { keyframeNodeOwner.referenceCount++; clipOwners[nodeIndex] = keyframeNodeOwner; ...
来源: Laya_社区 发布时间: 20240517
...reate("LayaScene_yuanwenj2/Conventional/yuanwenj2.ls", Laya.Handler.create(this, function() { console.log("sssssssssssss"); })); 或者使用 Laya.Scene3D.load('LayaScene_yuanwenj2/Conventional/yuanwenj2.ls',Laya.Handler.create(this,this.onComplete都会报这...
来源: Laya_社区 发布时间: 20190618