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

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

381. 微信小游戏加载资源问题 [ 39%]

...rCode) { var tempData; if (type == Laya.Loader.JSON || type == Laya.Loader.ATLAS || type == Laya.Loader.PREFAB || type == Laya.Loader.PLF) { tempData = MiniAdpter.getJson(data.data); } else if (type == Laya.Loader.XML) { tempData = Laya.Utils.parseXMLFromString(data.data); } else { tempData = data.d...

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

382. 下拉选项框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...,#ffffff"; this.combobox.selectedIndex = 1; this.combobox.scrollBarSkin = "atlas/comp/vscroll.png"; } } 二、通过代码创建ComboBox组件 在进行书写代码的时候,免不了通过代码控制UI,创建UI_ComboBox类,通过代码设定ComboBox相关的属性。下述示例演示了如...

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

383. 新手引导 挖洞 不用 cacheAs="bitmap" 希望能帮助那些和我一样有需求的码农!你好我好大家好才是真的好!请各位大佬批评指教! [ 35%]

...       // image.crossOrigin = "";         image.src = "res/atlas/pixel.png";         image.onload = function()         {             // 界面上按钮所在的位置以及按钮的宽高             drawImage(image, 462, 194, 156, 48, 0); // ...

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

384. 绘制能力 · LayaAir3.3 · 引擎文档 · LAYABOX [ 26%]

...dth, height, sizeGrid, false, color)); } 代码示例: Laya.loader.load("atlas/comp/image.png").then((res: Laya.Texture) => { let sp = new Laya.Sprite(); // 绘制九宫格纹理 sp.graphics.draw9Grid(res, 0, 0, 1024, 626, [0, 0, 0, 0, 1]); this.owner.addChild(sp); }); 运行效果: (图9-2...

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