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

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

1. 缓动-缓动函数演示 [ 100%]

...andler(this, this.renderList); Laya.stage.addChild(easeFunctionsList); let data = []; data.push('backIn', 'backOut', 'backInOut'); data.push('bounceIn', 'bounceOut', 'bounceInOut'); data.push('circIn', 'circOut', 'circInOut'); data.push('cubicIn', 'cubicOut', 'cubicInOut'); data.push('elasticIn', 'e...

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

2. UI-List [ 96%]

...ler(this, this.updateItem); // 设置数据项为对应图片的路径 let data = []; for (let i = 0; i = []; for (var i: number = 0; i < 10; ++i) { data.push("res/ui/listskins/1.jpg"); data.push("res/ui/listskins/2.jpg"); data.push("res/ui/listskins/3.jpg"); data.push("res/ui/listskins/4.jpg"); dat...

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

3. 输入设备-地图 [ 89%]

...p.timestamp; } // 将原始坐标转换为百度坐标 convertToBaiduCoord(data) { if (data.status == 0) { let position = data.points[0]; // 设置标注物位置 marker.setPosition(position); map.panTo(position); map.setZoom(17); } } onError(e) { const Geolocation = Laya.Geolocation; if (e.code == ...

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

4. 加载-多种类型资源加载 [ 82%]

...nction() { var Loader = Laya.Loader; var Handler = Laya.Handler; var ROBOT_DATA_PATH = "res/skeleton/robot/robot.bin"; var ROBOT_TEXTURE_PATH = "res/skeleton/robot/texture.png"; (function() { Laya.init(100, 100); var assets = []; assets.push( { url: ROBOT_DATA_PATH, type: Loader.BUFFER }); assets.pu...

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

5. 网络和格式-POST [ 78%]

...pRequestError); hr.send('http://xkxz.zhonghao.huo.inner.layabox.com/api/getData', 'name=myname&psword=xxx', 'post', 'text'); } showLogger() { const Text = Laya.Text; logger = new Text(); logger.fontSize = 30; logger.color = "#FFFFFF"; logger.align = 'center'; logger.valign = 'middle'; logger.size(La...

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

6. 网络和格式-GET [ 77%]

...pRequestError); hr.send('http://xkxz.zhonghao.huo.inner.layabox.com/api/getData?name=myname&psword=xxx', null, 'get', 'text'); } showLogger() { const Text = Laya.Text; logger = new Text(); logger.fontSize = 30; logger.color = "#FFFFFF"; logger.align = 'center'; logger.valign = 'middle'; logger.size(...

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

7. UI-RefreshList [ 59%]

...ender = ItemBox; this.refreshList.vScrollBarSkin = ""; // 创建数据 var data = this.createData(9, "初始数据"); this.refreshList.array = data; // 添加事件监听 this.refreshList.on(Event.MOUSE_UP, this, this.stageOnMouseUp); this.refreshList.on(Event.MOUSE_OUT, this, this.stageOnMouseUp); ...

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