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

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

21. 获取Sprite位置问题 [ 76%]

...ue,"fly"); //获取动画大小区域 var bound:Laya.Rectangle = this.body.getBounds();  //this.pos(100,0); console.log(-bound.width/2 + " --- "+ -bound.height/2); }  onPlayComplete():void{  } } 请问为啥bound.width bound.heigh这是0? 2018-04-27 添加评论 免费帖 --> 分享 微博 QZONE ...

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

22. 创建好的Animation,缩放后怎么获取宽高 [ 76%]

... 与内容相关的链接 提交 3 个回复 ymsdandan 赞同来自: 通过getBound方法获取当前帧的Rectangle信息试试 2017-11-22 0 0 分享 微博 QZONE 微信 datouboy 赞同来自: 通过getBounds(),getGraphicBounds(),getSelfBounds()获取到的返回信息,都是0,还有其它方...

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

23. layaAir中Animation无法获得宽高,很多逻辑无法判断 [ 73%]

...内容相关的链接 提交 2 个回复 qq_别天神 赞同来自: 使用getBounds ()来获取宽高,这个有点耗性能   2016-11-17 0 1 分享 微博 QZONE 微信 cuixueying 赞同来自:   是的,为了节省性能的消耗,我们的显示对像本身是没有宽高的,只能通过ge...

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

24. 怎么获取Skeleton下模型的大小 [ 72%]

...//需要设置一次先才能获取大小   var boundsW: number = skeleon.getBounds().width; var boundsH: number = skeleon.getBounds().height; 2019-06-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 137*****768 相关问题 请问有...

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

25. UI加载完成后无法获取控件的大小——超详细版问题 [ 72%]

..."----------the event resize-------") console.log("ref-resize:", this.myref.getBounds()); console.log("pan-resize", this.mypan.getBounds()); } private fitDOMElements_scroll(a, b, c, d, e, f): void { console.log("----------the event scroll-------") console.log("ref-scroll:", this.myref.getBounds()); c...

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

26. laya.ani.GraphicsAni_API3.0 [ 72%]

...drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale strokeText transform translate create recycle Constructors constructor new GraphicsAni(): GraphicsAni Inherited from Graphics.constructor Defined in laya/display/Graphic...

来源: Laya3.0_api 发布时间: 20231115

27. laya.ui.AutoBitmap_API3.0 [ 72%]

...drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale setState strokeText transform translate Constructors constructor new AutoBitmap(): AutoBitmap Inherited from Graphics.constructor Defined in laya/display/Graphics.ts:54 ...

来源: Laya3.0_api 发布时间: 20231115

28. laya.map.TileAniSprite [ 72%]

...据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓存为静态图像,...

来源: laya_api 发布时间: 20170929

29. laya.particle.Particle2D [ 70%]

...据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓存为静态图像,...

来源: laya_api 发布时间: 20170929

30. LayaAir graphics透明度无效? [ 70%]

...但是显示对象还是没有的,需要你自己手动设置或者通过getBounds去获取 graphics.alpha(0.5)的书写方式,在webGL下可以正常显示,在canvas下会一闪而过 修改方式: 在绘制完成后加上下面2句话即可  graphics.restore();  sp.graphics.save(); 2016-...

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