大约有 1,491 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)
Laya_社区(917) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(72) laya_api(2) Laya2.0_api(2)
..., width, height, undefined, "#00ff00", 1) this.sp.pos(500, 500) Laya.stage.addChild(this.sp); } } new GameMain();这是运行截图,发现中心点的位置并不是(500, 500) 附件 : --> 2017-12-30 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20171230
...mg:Laya.Image = new Laya.Image() img.skin = 'xxxx' // 图片url路径 this.addChild(img) const imgMask:Laya.Sprite = new Laya.Sprite() img.mask = imgMask 我就问一下,这个时候img是能显示还是不能显示? 答案是,如果Laya.init就不会显示;Laya3D.init就会显示 引...
来源: Laya_社区 发布时间: 20190328
...omplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Laya.Browser.width / 2, Laya.Browser.height / 2 + 100); //this.skeleton.scale(0.5, 0.5); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); } private onError() { con...
来源: Laya_社区 发布时间: 20210813
...为flashBuilder创建项目,无法运行。报错Cannot read property 'addChild' of null 问题状态 最新活动: 2017-12-06 16:26 浏览: 1124 关注: 2 人
来源: Laya_社区 发布时间: 20171206
...is.tMap.height)/2),this.tMap.width,this.tMap.height); this.addChild(this.tMap.mapSprite()); 请问这是什么意思啊 2020-04-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠?...
来源: Laya_社区 发布时间: 20200420
...uper(); var iHtml: HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(iHtml); iHtml.href = "https://www.baidu.com/"; } } // 程序入口 Laya.init(600, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded()...
来源: Laya_社区 发布时间: 20171011
... = 25 ; this.btn.scaleX = 25 / 75 ; this.btn.scaleY = 25 / 75 ; Laya.stage.addChild(this.btn) ; this.btn.size(25,25) ; this.btn.on(Laya.Event.CLICK, this, music.music_voice_toggle); 代码是这样的 , 图片上传不了,代码直接贴上来 2017-08-03 0 0 分享 微博 QZONE 微信 cuixueying...
来源: Laya_社区 发布时间: 20170803
....emoji = this.skeleton.getAniNameByIndex(0); } this.play(this.emoji); this.addChild(this.skeleton); this.show(); if (this.completeHandler) { this.completeHandler.runWith(this); } } //改变表情 public changeEmoji(emoji:string):void{ if (emoji) { this.emoji=emoji; } if (!this.emojiArr || !this.emoj...
来源: Laya_社区 发布时间: 20180824
...载Base64图片数据 sp1.loadImage(e.target.result as string); this.owner.addChild(sp1); } }); 上述代码中,用 Laya.loader.fetch 加载图片二进制数据,根据自定义的规则,可以解析数据加密方式,并获得完整图片数据。在这里我们更多的介绍一下 LayaAir...
来源: Laya3.0_文档 发布时间: 20230303
...置人物 或者一个 显示对象 这个怎么放置? 我用Laya.Stage.addChild(); 会被地图盖住 2017-05-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: XiaozeRain private funct...
来源: Laya_社区 发布时间: 20170526