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

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

201. 什么laya的Button渲染逻辑顺序是先渲染,再获取素材切片? [ 77%]

...his._skin); if (!img){ console.log("lose skin",this._skin); return; }; var width=img.sourceWidth; var height=img.sourceHeight / this._stateNum; img.$_GID || (img.$_GID=Utils.getGID()); var key=img.$_GID+"-"+this._stateNum; var clips=AutoBitmap.getCache(key); if (clips)this._sources=clips; else { thi...

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

202. laya.ui.ComboBox [ 77%]

...read-only] 对象的显示高度(以像素单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-only] ...

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

203. LayaIDE对齐有bug? [ 77%]

...图片进去,view和图片的anchorX anchorY都设置成0.5 然后view的width和height分别设置成750, 1334, 图片spr的width和height125, 125 怎么spr坐标375, 667却显示在左上角?并不是必现的,搞着搞着就出来了 附件 : --> 2018-07-02 添加评论 免费帖 -...

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

204. view和panel关于mouseThrough的区别 [ 77%]

...        * <p>影响对象鼠标事件响应区域的属性width、height、hitArea,优先级顺序:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。</p>          * @default false    不可穿透,此对象的鼠标响应区域由width、heigh...

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

205. laya.display.Graphics [ 77%]

...false):void 清空绘制命令。 Graphics  clipRect(x:Number, y:Number, width:Number, height:Number):void 设置剪裁区域,超出剪裁区域的坐标不显示。 Graphics  destroy():void 销毁此对象。 Graphics  drawCircle(x:Number, y:Number, radius:Number, fillColor:*, lineColor:* =...

来源: laya_api 发布时间: 20170929

206. 寻路系统(JavaScript-3D基础(JS)-LayaAir3D之高级应用) [ 77%]

...据计算得到AStar网格 */ createGridFromAStarMap(texture) { var textureWidth = texture.width; var textureHeight = texture.height; //读取图片像素 var pixelsInfo = texture.getPixels(); var aStarArr = []; var index = 0; //像素值黑色不可通行,白色部分可以通行 for (var w = ...

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

207. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 77%]

...改大小 tree.size(300, 300); //修改树的位置 tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; //加载到舞台 Laya.stage.addChild(tree); } } } import laya.ui.Box; import laya.ui.Clip; import laya.ui.Label; // IDE中生成的此类对应的json对...

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

208. laya.map.TileAniSprite [ 77%]

...read-only] 对象的显示高度(以像素单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-only] ...

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

209. Laya2.4版本,场景内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 77%]

...I extends Laya.Scene { public static uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart","label":"label"},"compId":3}],"loadList":["comp/button.png"],"loadList3D":[]}; constructor(){ ...

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

210. UI-RefreshList [ 77%]

...加场景中需要使用的资源 this.baseBox = new Box(); this.baseBox.width = 443; this.baseBox.height = 622; this.baseBox.pos(30, 28); this.baseBox.bgColor = "#ffffff"; // 加载进度条 this.refreshLoading = new Box(); this.refreshLoading.pos(133, 0); this.refreshLoading.bottom = 10; this.refr...

来源: Laya2.0_示例 发布时间: 20251130