大约有 1,374 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)
Laya_社区(1168) Laya2.0_文档(69) Laya3.0_文档(67) Laya2.0_示例(27) Laya_示例(24) Laya3.0_api(17) laya_api(1) Laya2.0_api(1)
...is, this.onCallLater); } } onCallLater() { const Text = Laya.Text; console.log("onCallLater triggered"); let text = new Text(); text.font = "SimHei"; text.fontSize = 30; text.color = "#FFFFFF"; text.text = "打开控制台可见该函数仅触发了一次"; text.size(Laya.stage.width, Laya.stage.hei...
来源: Laya2.0_示例 发布时间: 20260303
...onCollision); 2.碰撞检测 private onCollision(event): void { console.log("碰撞了.."); var home = _gamePage._mainPage._playPage; for(var i = 0; i < event.pairs.length; i++) { var pair = event.pairs[i]; if(!(pair.bodyA.label === 'gun' || pair.bodyB.label == "gun")) continue; var ...
来源: Laya_社区 发布时间: 20180601
...eScript(node.id, node.getComponent("MyScript").id, "test", "abc"); console.log(ret); 3、自定义一个函数,并执行。例如: //下面是场景进程的代码 //注意:IEditorEnv.regClass是必须的 @IEditorEnv.regClass() export class TestSceneScript { //注意:this是当前的IEditorE...
来源: Laya3.0_文档 发布时间: 20251010
...hangeValue(); _proMask.scaleX = _value / _max; _proMask.repaint(); console.log("改变值: " + _proMask.scaleX); } /** *@inheritDoc */ override public function destroy(destroyChild:Boolean = true):void { super.destroy(destroyChild); _proMask && _proMask.destroy(_proMask); _progress &&...
来源: Laya_社区 发布时间: 20170327
... • 2018-01-29 15:42 @qian:我在ShurikenParticleSystem的emit方法中打log,可以看到log刷的很快 说明粒子数量并没有减少,是因为某种原因没有显示出来 qian • 2018-01-29 15:57 上传一下改完粒子数的demo LagField • 2018-01-29 16:02 @qian:在下面上传了...
来源: Laya_社区 发布时间: 20180129
..._btn, { y: 200 }, 800, Laya.Ease.backOut, Laya.Handler.create(this, this.onLogoCompete)); } onLogoCompete(): void { Laya.Tween.to(this.biaoti_lable, { y: 120 }, 800, Laya.Ease.backOut); } onStart(): void { Laya.Tween.to(this.kaishi_btn, { y: 400 }, 800, Laya.Ease.backIn, Laya.Handler.create(this, th...
来源: Laya_社区 发布时间: 20180507
... function callback(event) { console.log(" callback test"); } function laya_test() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.cli...
来源: Laya_社区 发布时间: 20161128
...端的SDK会用到这些TOKEN YIM.AddUserAuth(obj,function(res){ console.log(res); }) router.get('/', function (req, res, next) { //微信签名验证 YIM.WXCheckSignature(req,token,function(err,rows){ if(err){ res.send("error"); }else{ res.send(rows); } }) }); router.get('/token', function (req, re...
来源: Laya_社区 发布时间: 20170722
... please do not make any modifications. */ import View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; var REG: Function = Laya.ClassUtils.regClass; export module ui.test { export class TestSceneUI extends Laya.Scene { public scoreLbl:Laya.Label; public ...
来源: Laya_社区 发布时间: 20190402
我在dialog a上继续弹出dialog b 。需要关闭b的时候,a依然存在。怎么做? 我在ide中做了一个基础scene 1,一个dialog a 和一个dialog b。 从1,点击,弹出a;没问题; 从a,点击,弹出b,没问题。 但是我需要在操作b的时候,a一直存在...
来源: Laya_社区 发布时间: 20190521