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

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

151. 【LIST无法拖动】参照官方实例做的 [ 73%]

...         let s = json.my_guanqia.substr(0,this.default_guanqia.length);         data = this.find_StringAllIndex(s);         this.box_arr= data;         list.array = data;                  this.list = list;         Laya.stage.addChild(...

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

152. 2D精灵光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

...yPrimitive([vertices], [declaration], indices, Laya.IndexFormat.UInt16, [{ length: indices.length, start: 0 }]); return mesh2D; } } 最终的效果如图3-1所示, (图3-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:56 img{cursor:poi...

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

153. 2D线渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

...hedModle) 启用此属性后,线段会变为虚线。 虚线长度(dashedLength) 启用虚线模式后可以设置的属性,此属性决定了虚线每一个循环的长度。 虚线间隔的百分比(dashedPercent) 虚线中非空白区域占线段长度的百分比。 虚线偏移量(dashedOff...

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

154. UI-RefreshList [ 73%]

...var line = 0; //所有的红点数据索引都增加 if (this.redHotStatus.length > 0) { for (let i = 0; i { //更新list数据源 this.refreshList.array = _arr; this.refreshList.scrollTo(line); //将选中索引设定为该索引 this.refreshList.selectedIndex = index; //恢复滚动条到原位 th...

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

155. 看下这个问题是不是Bug [ 72%]

...r); else this._inActiveHierarchy(arr, fromSetter); for (let i = 0, n = arr.length; i < n; i++) { let comp = arr[i]; comp.owner && comp._setActive(active); } arr.length = 0; } 无名玩家X • 2023-10-10 20:22 呃...也不用反复强调你们没问题... 感谢大佬科普,但是"on...

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

156. 网络和格式-ProtocolBuffer [ 72%]

...code(buffer); // ... do something with message // If your application uses length-delimited buffers, there is also encodeDelimited and decodeDelimited. } })();module laya { import Loader = Laya.Loader; import Browser = Laya.Browser; import Handler = Laya.Handler; export class Network_ProtocolBuffer ...

来源: Laya_示例 发布时间: 20251209

157. 网络和格式-ProtocolBuffer [ 72%]

...code(buffer); // ... do something with message // If your application uses length-delimited buffers, there is also encodeDelimited and decodeDelimited. } })();module laya { import Loader = Laya.Loader; import Browser = Laya.Browser; import Handler = Laya.Handler; export class Network_ProtocolBuffer ...

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

158. 内存释放问题 [ 72%]

...id { let uiResArray = []; let muduleName; for (let index = 0, len = mNames.length; index < len; index++) { muduleName = mNames[index]; uiResArray.push({ url: bigao.Utils.StringTool.formatString(ResUIModuleManager.moduleResPath, muduleName), type: Laya.Loader.ATLAS }); } Laya.loader.load(uiResArra...

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

159. 多光源渲染(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 72%]

...{ var seed = Laya.timer.currTimer * 0.002; for (var i = 0, n = this.lights.length; i 加载场景,并且添加多光源 ```typescript Laya.Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChil...

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

160. 多光源渲染(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 72%]

...{ var seed = Laya.timer.currTimer * 0.002; for (var i = 0, n = this.lights.length; i 加载场景,并且添加多光源 ```typescript Laya.Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChil...

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