大约有 1,326 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0056 秒)
...wRect);我的游戏销毁的代码 _map.destroy(); _map = null; Laya.stage.addChild(new Plazz());//ui 经过排查后发现问题出现在TiledMap相关的代码里面 在TiledMap的destroy方法内 /** * 销毁地图 */ public function destroy():void { ....... //这里是销毁地图层的代码 va...
来源: Laya_社区 发布时间: 20180503
...gressBar.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(this.progressBar); Laya.timer.loop(100, this, this.changeValue); }); } // 模拟进度条加载 private changeValue(): void { if (this.progressBar.value >= 1) this.progressBar.value = 0; this.progressBar.value += ...
来源: Laya3.0_文档 发布时间: 20240910
...// Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } render() { console.log("render"); var l = [ 0, 0, 0, -(Laya.Browser.height >> 1), (Laya.Browser.width>>1), -(Laya.Browser.height>>1), Laya.Browser.width, -(Laya.Browser.height>>1),...
来源: Laya_社区 发布时间: 20180602
...on.createFrames([swimpoorpath01,swimpoorpath02],"swimpoolani"); Laya.stage.addChild(this.swimpoolani); this.swimpoolani.play(0,true,"swimpoolani"); this.swimpoolani.interval = 500; } onEnable(): void { } onDisable(): void { } } esources already exist,is repeated load...
来源: Laya_社区 发布时间: 20190805
...else { printNumber++; } } } drawTextBySprite(sprite: Laya.Sprite) { sprite.addChild(this.sprite); this.drawText(sprite.x, sprite.y, sprite.width, sprite.height); } onEnable(): void { } onDisable(): void { } } export enum layoutType { /**竖排 */ verticalRight = 0, } 2019-11-03 添加评论 免费...
来源: Laya_社区 发布时间: 20191103
...是打开项目就报错 部分日志: TypeError: Cannot read property 'addChild' of null at IFrameRenderItem.__proto.show (file:///D:/LayaAirIDE/resources/app/out/vs/layaEditor/h5/layabuilder.max.js:26665:27) 二、社区手机号不能登陆 日志在附件“bug.rar”里,清了缓...
来源: Laya_社区 发布时间: 20200909
...as", Handler.create(null, onLoaded)); } function onLoaded() { Laya.stage.addChild(new GolfMainUI()); } 附件 : --> 2018-06-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 中心点...
来源: Laya_社区 发布时间: 20180627
...x.x = Laya.Browser.width; gamebox.visible = true; Laya.stage.addChild(gamebox); // Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,); Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,Handler.create(this,onTweeed)) Tween.to(gamebox,{x:0},1000); console...
来源: Laya_社区 发布时间: 20170104
...时间间隔 body.interval = interval; //将动画加入到容器中 this.addChild(body); //增加动画播放完成监听 body.on("complete", this, this.onPlayComplete); } //播放当前状态的动画 this.playAction("fly"); } 2017-04-20 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回...
来源: Laya_社区 发布时间: 20170420
...(); test.font=this.mFontName; test.text = "这是一个文本"; Laya.stage.addChild(test); } 2017-08-30 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 Lyr1 相关问题 写个捕鱼游戏练练手 解决跨域...
来源: Laya_社区 发布时间: 20170829