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

大约有 376 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)

1. var text = new Laya.Text();为什么text.pivot(200,200);不起作用 [ 100%]

var text = new Laya.Text();为什么text.pivot(200,200);不起作用 var text = new Laya.Text(); text.pivot(text.width / 2, text.height / 2); text.pivot(200,200); console.log(text.pivotX, text.pivotY); 打印显示都是0 2018-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

2. 初始化Laya.init(200200,Laya.WebGl)报错 [ 99%]

初始化Laya.init(200200,Laya.WebGl)报错   附件 : --> 2018-11-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 ippon 赞同来自: 请注明您的引擎是1.x还是2.x,以及详细的IDE版本。 ...

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

3. 关于mouseThrough设计原理问题? [ 96%]

...是不是有问题?var a:Sprite = new Sprite(); a.graphics.drawRect(0,0,200, 200, "#00ff00"); a.size(200, 200); a.pos(0, 0); a.on(Event.CLICK, null, function(e:Event):void{ trace("click a"); }) Laya.stage.addChild(a); var b:Sprite = new Sprite(); b.graphics.drawRect(0,0,200, 200, "#0000ff"); b.siz...

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

4. viewport 的用法 [ 96%]

...n layaSlot(info){       layaSlot.__super.call(this);       this.size(200,200);       this.graphics.drawRect(0,0,200,200,'#123456');       var viewPort = new Rectangle(0,0,200,200);             this.viewport = viewPort;       var ccc = new Sprite();       ccc.graphics.drawRect...

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

5. scrollrect的bug? [ 95%]

...17-03-30 11:20 var containr = new Sprite(); containr.graphics.drawRect(0,0,200,200,'#ff0000') containr.size(200,200); containr.pivot(100,100); containr.x = 200 containr.y = 200 senceLayer.addChild(containr); var rect = new Rectangle(0,0,200,200); containr.scrollRect = rect; var itemContainr = new Sp...

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

6. 200多张1920*1080的图片,想打包,一直不成功 [ 95%]

200多张1920*1080的图片,想打包,一直不成功 当缩放系数0.1的时候,可以打包成功,但是效果太差;我想最低保持0.5,有没有办法可以解决?     错误日志: Error: Command failed: "D:\layaair\layaairIde\resources\app\out\vs\layaEditor\libs\TP\atlas-...

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

7. 发现TimeLine的一些问题,像是BUG [ 95%]

...题二,比如图片初始位置y=50,我设定缓动动画为移动到200后,在回调函数里改变y=350,再播一次,结果图片还是从y=50(最早的初始点)开始移动,官方的api说的“to”是从当前位置开始,所以感觉有问题   具体可以看我的demo,...

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

8. Sprite graphics的显示比例问题 [ 95%]

...skin) { var character = new Laya.Sprite(); character.loadImage(skin, 0, 0, 200, 200, Laya.Handler.create(this, function () {console.log('KO!~'); })); character.graphics.drawLine(0, 200, 200, 0, "#ff0000", 1); character.graphics.drawLine(0, 0, 200, 200, "#ff0000", 1); character.graphics.drawCircle(10...

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

9. 打包成APK运行一半崩溃 [ 94%]

...4-11 11:17:10.133    8591-8646/com.mygame.laya I/LayaBox﹕ Download end:200 04-11 11:17:10.133    8591-8646/com.mygame.laya I/LayaBox﹕ Downloaded http://192.168.167.103:8901/bi ... 7.103 s=0 l=795 04-11 11:17:10.145    8591-8658/com.mygame.laya I/LayaBox﹕ [ 04-11 11:17:10.155  8591: 8658...

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

10. Native打包的横竖屏问题 [ 93%]

...tatic/update/filetable.bin?1d445e94d78c91e9b5e94c26052630c5 HTTP/1.1" 200 349 192.168.2.109 - - [12/Feb/2017:20:31:34 +0800] "GET /Cherry/Flex/deploy/static/1.170206/zlib.min.js?1.170206 HTTP/1.1" 200 6988 192.168.2.109 - - [12/Feb/2017:20:31:34 +0800] "GET /Cherry/Flex/deploy/st...

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