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

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

1551. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 50%]

... new logic.UI.role.PlayerHealthBar(); this.playerHB.pivotX = this.playerHB.width / 2; this.playerHB.pivotY = this.playerHB.height / 2; this.playerHB.y = 500; this.playerHB.txtName.text = "搞个毛啊"; // this.playerVO.name; this.addChild(this.playerHB); } private aaa():void { this.playerHB.x += th...

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

1552. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 50%]

... this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = 1500; apesCtn.width = 3248; this.tl.pivot(-1624,-750); }, 2019-01-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 需要上...

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

1553. 为什么new不出Rectangle的类,提示not defined [ 50%]

...10,10,10,10);     console.log(abc); 代码。 Rectangle {x: 10, y: 10, width: 10, height: 10} 控制台结果, 综上,你的引擎环境有问题。 2018-06-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 进击的猎人 相关...

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

1554. 如何改变text部分字的颜色或两个不同颜色的text如何拼接看起来像一个文本? [ 50%]

...在多少距离的时候拼接,因为玩家昵称长短也不一样。而width属性是文本框长度,非文字长度。   更复杂的情况类似装备名字写在文字里面, 这样要分更多段了 请问:layaAir有没有提供好的解决方法     2017-05-05 添加评论 免费...

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

1555. 被遮罩的对象的子显示对象再添加遮罩,子显示对象的遮罩显示不正确 [ 50%]

...clear(true); this.img.mask.graphics.drawRect(100 - this.img.x, 0, this.img.width, 300, "#ffffff"); } 附件 : --> LayaTest.rar 2019-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 zengjoeng 赞同来自: 谁...

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

1556. spine 播放错乱 [ 50%]

...ture(); 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() { console.error("load spine error"); } private play(): void {...

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

1557. 调用创建微信授权按钮时,授权按钮有时候显示有时候不显示 [ 50%]

...           bottom: 30,                     width: 297*0.45,                     height: 98*0.45,                     lineHeight: 98*0.45,                     backgroundColor: '#ff0000',            ...

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

1558. 怎么在不同时间显示MovieClip的多个实例 [ 50%]

...(); ani_planet.pivotY = ani_planet.pivotX = 350; ani_planet.x = Laya.stage.width/2; ani_planet.load("1.swf",true); ani_planet.y = i*50; addChild(ani_planet); i++; } 以上代码执行后生成一个新的MovieClip实例,然而会把旧的MovieCip销毁掉,要怎么解决这个问题,求指教...

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

1559. 物理使用scrollrect错位问题 [ 50%]

...ldRoot = this.road; this.road.scrollRect = new Laya.Rectangle(0, 100, this.width, this.height); 2020-10-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 layabox 赞同来自: 物理辅助线错位问题已解决...

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

1560. cache bitmap size larger than 2048,cache ignored [ 50%]

...的链接 提交 3 个回复 ymsdandan 赞同来自: 你是不是bitmap的width和heigh没有设好,导致超出范围了呀 2017-11-10 0 3 分享 微博 QZONE 微信 ymsdandan 赞同来自: 建议你发个demo过来吧 2017-11-10 0 1 分享 微博 QZONE 微信 Laya_XS 赞同来自: 提交下你...

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