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

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

121. laya.ui.AutoBitmap [ 44%]

...ll):void 用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 = nu...

来源: laya_api 发布时间: 20170929

122. laya.ui.AutoBitmap [ 43%]

...xtureCmd 用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 = nu...

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

123. 艰难的历程 [ 37%]

...k层 人物移动的时候,抹上黑色的地方就不让走 我还用Laya.Rectangle和scrollRect  做了个2D相机   开始真的很难懂 真正意识到的时候,就会觉得很简单   我很少在论坛提问 今天提问了,是关于HSlider的问题   有一个人回答了,他叫laya_Aaro...

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

124. 官方案例里摄像机绕物体旋转脚本的问题 [ 30%]

...max: number) { this.min = min; this.max = max; } } /// <summary> /// Rectangle area on plane. /// </summary> class PlaneArea { /// <summary> /// Center of area. /// </summary> public center: Transform3D; /// <summary> /// Width of area. /// </summary> public width...

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

125. 2D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 26%]

...aya.Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); var bounds:Laya.Rectangle=sp.getGraphicBounds(); Laya.stage.addChild(sp); getBounds可以满足多数多数需求,但由于其需要计算边界,不适合频繁调用。 设置容器的autoSize为true。 var sp=new Laya.Sprite(); sp.auto...

来源: Laya3.0_文档 发布时间: 20251010