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

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

1. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 100%]

...Lel].h); // 球体和城堡的矩形显示区域 var boundBall = this.ball.getBounds(); var boundTower = this.tower.getBounds(); var boundAeroboat = this.aeroboat.getBounds(); var boundMountain = this.mountain.getBounds(); var boundStatue = this.statue.getBounds(); var boundAngel = this.angel.getBou...

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

2. movieClip,如何获取宽度,width、getbounds 都为零,但是他显示了 [ 96%]

movieClip,如何获取宽度,width、getbounds 都为零,但是他显示了 附件 : --> 2018-02-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: https://ask.layabox.com/question/1814 ...

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

3. 图片居中的问题 [ 94%]

...dth/2,image.height/2,image的宽高需要自己手动设置或者通过getBounds获取。 2016-11-18 0 0 分享 微博 QZONE 微信 shaouXie 赞同来自: var bg = new Laya.Sprite(); bg.loadImage("res/bg-480x720.jpg"); Laya.stage.on(Laya.Event.RESIZE,this,onResize);   function onResize() {   ...

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

4. 没有预加载的图片怎么获取width和height ? [ 88%]

...lder.scaleY,older.rotation,older.x,older.y, older.width,older.height,older.getBounds().width,older.getBounds().height);      older.scale(2,2);     console.log(older.scaleX,older.scaleY,older.rotation,older.x,older.y, older.width,older.height,older.getGraphicBounds().width,older.getGraphicBou...

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

5. 一个动画我想设置它的大小该怎么取设置啊 [ 88%]

...容相关的链接 提交 4 个回复 cuixueying 赞同来自: 使用ani.getBounds().width,,,ani.getBounds().height即可! 2017-06-29 0 0 分享 微博 QZONE 微信 z298959 赞同来自: 获取宽高2个方式都获取得出来,我的意思是怎么去重新设置这个动画的大小   ...

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

6. 其它优化策略(JavaScript-2D进阶篇(JS)-性能优化) [ 85%]

...在循环里创建对象及复杂计算。 ### 4、尽量少用autoSize与getBounds `autoSize()`与`getBounds()`需要大量计算,对性能的影响较大,尽量少用。 ### 5、被try catch的函数执行会变得非常慢 项目中尽量减少`try catch`的使用,被`try catch`的函数执...

来源: Laya2.0_文档 发布时间: 20210715

7. 其它优化策略(TypeScript-2D进阶篇(TS)-性能优化) [ 85%]

...在循环里创建对象及复杂计算。 ### 4、尽量少用autoSize与getBounds `autoSize()`与`getBounds()`需要大量计算,对性能的影响较大,尽量少用。 ### 5、被try catch的函数执行会变得非常慢 项目中尽量减少`try catch`的使用,被`try catch`的函数执...

来源: Laya2.0_文档 发布时间: 20210714

8. 其它优化策略(ActionScript-2D进阶篇(AS3)-性能优化) [ 84%]

...在循环里创建对象及复杂计算。 ### 4、尽量少用autoSize与getBounds `autoSize()`与`getBounds()`需要大量计算,对性能的影响较大,尽量少用。 ### 5、被try catch的函数执行会变得非常慢 项目中尽量减少`try catch`的使用,被`try catch`的函数执...

来源: Laya2.0_文档 发布时间: 20210715

9. HTML如何实现文本中某个字符转换成图片显示? [ 81%]

...tmlDivElement.y得到当前的位置坐标!也可以通过htmlDivElement.getBounds().x,htmlDivElement.getBounds().y来获取,你那边是掉不了这些方法吗? 2017-04-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 lh48075012...

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

10. animation在loadATL的回调中,animation.width=0,为什么为0?我想拿到宽度怎么做 [ 80%]

...调中,animation.width=0,为什么为0?我想拿到宽度怎么做?getBounds也为0 2018-01-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: 通过getBound方法获取当前帧的Rectan...

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