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

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

171. 如何获取Animation组件加载的图集中的单个图片的宽高 [ 55%]

...n组件加载的图集中的单个图片的宽高 试了getGraphicBounds和getBounds方法,都只是获取图片的显示区域,空白部分没算进去,我需要获取整张图的宽高,应该如何获取? 2017-10-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

172. 关于矢量图跟Image [ 55%]

...加多个子节点。 注意: Sprite 默认没有宽高,可以通过getBounds函数获取;也可手动设置宽高;还可以设置autoSize=true,然后再获取宽高。Sprite的宽高一般用于进行碰撞检测和排版,并不影响显示图像大小,如果需要更改显示图像...

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

173. laya.ui.TextInput [ 55%]

...据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite  bg : AutoBitmap 表示此对象包含的文本背景 AutoBitmap 组件实例。 TextInput bgColor : String 文本背景颜色,以字符串表示...

来源: laya_api 发布时间: 20170929

174. laya.physics.PhysicsDebugDraw_API3.0 [ 54%]

...as drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_anchorX get_anchorY get_height get_scaleX get_scaleY get_transform get_visible get_width...

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

175. laya.ani.bone.Skeleton [ 54%]

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

来源: Laya2.0_api 发布时间: 20190513

176. laya.map.TileAniSprite_API3.0 [ 54%]

...as drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_anchorX get_anchorY get_height get_scaleX get_scaleY get_transform get_visible get_width...

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

177. laya.ui.List [ 54%]

...据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的...

来源: laya_api 发布时间: 20170929

178. 关于设置动画轴心点问题 [ 54%]

...的Animation添加一个Event.LOADED事件,在资源加载完成后通过getBounds来获取Animation的宽高,设置pivot轴心点为width/2,height/2,同时设置pos值为pivot值的相反值即可。如果pos已经设置过,将pos现有值-(povot.x,pivot.y) 2017-01-19 1 2 分享 微博 QZ...

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

179. laya.display.Graphics [ 54%]

...String = repeat, offset:Point = null):void 用texture填充。 Graphics  getBounds(realSize:Boolean = false):Rectangle 获取位置及宽高信息矩阵(比较耗CPU,频繁使用会造成卡顿,尽量少用)。 Graphics  loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, hei...

来源: laya_api 发布时间: 20170929

180. laya.particle.Particle2D_API3.0 [ 54%]

...as drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_anchorX get_anchorY get_height get_scaleX get_scaleY get_transform get_visible get_width...

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