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

大约有 1,491 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)

571. 设置pivot后,精灵位置显示位置不正确 [ 74%]

..., 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

572. 我就问一下一个遮罩的问题 [ 74%]

...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

573. spine 播放错乱 [ 74%]

...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

574. TypeError: this._childs is null [ 74%]

...为flashBuilder创建项目,无法运行。报错Cannot read property 'addChild' of null 问题状态 最新活动: 2017-12-06 16:26 浏览: 1124 关注: 2 人

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

575. TiledMap.moveViewPort(x,y) 为嘛要传入负数 [ 74%]

...is.tMap.height)/2),this.tMap.width,this.tMap.height);         this.addChild(this.tMap.mapSprite()); 请问这是什么意思啊 2020-04-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠?...

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

576. HTMLIframeElement加载html网页的问题 [ 74%]

...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

577. sprite 添加点击事件没反应,对sprite设置了size也没用 [ 74%]

... = 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

578. Dragonbones龙骨动画 播放不同动作出现闪烁 混乱 [ 74%]

....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

579. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 74%]

...载Base64图片数据 sp1.loadImage(e.target.result as string); this.owner.addChild(sp1); } }); 上述代码中,用 Laya.loader.fetch 加载图片二进制数据,根据自定义的规则,可以解析数据加密方式,并获得完整图片数据。在这里我们更多的介绍一下 LayaAir...

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

580. 区块地图增加对象 [ 74%]

...置人物 或者一个 显示对象 这个怎么放置? 我用Laya.Stage.addChild(); 会被地图盖住 2017-05-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: XiaozeRain private funct...

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