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

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

141. laya.ui.VScrollBar_API3.0 [ 79%]

...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 bottomMoveLimit bottomMoveLimit: number = 0 Inherited from ScrollBar.bottomMoveLimit Defined in lay...

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

142. Laya2.0,使用WebGL渲染,获取canvas使用微信方式保存图片显示黑色? [ 79%]

Laya2.0,使用WebGL渲染,获取canvas使用微信方式保存图片显示黑色? Laya.Render.canvas.toTempFilePath({ x: 10, y: 10, width: 200, height: 150, destWidth: 400, destHeight: 300, success: (res) => { console.log(res) wx.saveImageToPhotosAlbum({ filePath: res.tempFilePath, succes...

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

143. laya.ui.ScrollBar_API3.0 [ 79%]

...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 bottomMoveLimit bottomMoveLimit: number = 0 Defined in laya/ui/ScrollBar.ts:64 底部移动限制...

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

144. 请问当按钮使用的skin透明的部分太大的时候,能够透过什么方法去调整碰撞范围吗? [ 79%]

...? 请问laya有没有地图编辑器工具? 请问有没有方法能够获取“鼠标是否处于按下状态”? 关于微信7.0.3版本之后的版本,微信小游戏 Android 端调整 “在屏 Canvas” 的放缩策略 有什么容器能够实现当子元素达到显示上限后自动...

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

145. 请问Laya如果获取Laya.Event.CLICK时间的点击坐标? [ 79%]

请问Laya如果获取Laya.Event.CLICK时间的点击坐标? // 设置用户点击事件 function setUserClick(){ var clickRect = new Laya.Sprite(); clickRect.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height-100 ); clickRect.pos( 0, 0 ); clickRect.size( Laya.stage.width, Laya.stage.he...

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

146. laya.display.Sprite_API3.0 [ 79%]

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

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

147. laya.ui.ComboBox_API3.0 [ 79%]

...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display...

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

148. laya.map.MapLayer_API3.0 [ 79%]

...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display...

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

149. laya.ui.AutoBitmap [ 79%]

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

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

150. 设置遮罩(JavaScript-LayaAir基础篇(JS)-位图) [ 79%]

...e(this,graphicsImg)); })(); function graphicsImg() { img = new Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(Res),150,50); //添加到舞台 Laya.stage.addChild(img); } })(); ``` 运行效果如图2所示: ![图2](img/2.jpg)(图2) ### 2.2 创建...

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