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

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

361. sprite.loadImage加载图片怎么设置要显示的x,y坐标和宽高? [ 76%]

...Rectangle(0, 0, Laya.stage.width, Laya.stage.height); this.tMap.createMap("res/mario_map/new_map2.json", viewRect, Laya.Handler.create(this,this.initMap)); } private initMap(): void { var layer = this.tMap.getLayerByIndex(9); var gs = layer.getObjectByName('others1'); var sp: Laya.Sprite = new Laya....

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

362. 区块地图-带动画的地图 [ 76%]

...ledMap = Laya.TiledMap; let tiledMap = new TiledMap(); tiledMap.createMap("res/tiledMap/orthogonal-test-movelayer.json", new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } } new TiledMap_AnimationTile();module laya { import Stage = Laya.Stage; import TiledMap = Laya.TiledMap; im...

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

363. 按钮组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 76%]

.../ 以下图片资源来自“引擎API使用示例”项目 this.skins = ["resources/res/ui/button-1.png", "resources/res/ui/button-2.png", "resources/res/ui/button-3.png", "resources/res/ui/button-4.png", "resources/res/ui/button-5.png", "resources/res/ui/button-6.png"]; // 计算将Button至于舞...

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

364. 微信小游戏关系链 我创建了一个开放域的项目 但是报错了 [ 76%]

...片的路径 var data = []; for (var i = 0; i < 10; ++i) { data.push("res/1.jpg"); data.push("res/1.jpg"); data.push("res/1.jpg"); data.push("res/1.jpg"); } rankList.array = data; function updateItem(cell, index) { cell.setImg(cell.dataSource); }  发布小游戏将code.js 发到开放域设置...

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

365. 加载TiledMap 不显示 [ 76%]

...his.tiledMap = new TiledMap();         this.tiledMap.createMap("res/tiledMap/t2.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this, this.mapLoaded), null, new Point(1600, 800));     }      private onStageClick(): void {       ...

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

366. discard property,please use transform's property instead [ 76%]

...3;         //生成阴影贴图尺寸         directionLight.shadowResolution = 2048;         //生成阴影贴图数量         directionLight.shadowPSSMCount = 1;         //模糊等级,越大越高,更耗性能         directionLight.shadowPCFType = 3;         Laya.loa...

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

367. Laya3d场景在部分andriod设备微信小游戏出现场景加载错误问题 [ 76%]

...现场景加载错误问题 VM59:164 Error: not node js file system!path:res/base/Assets/Animator/gamewin-gamewin.lani; go __invokeHandler__ Error: not node js file system!path:res/base/Assets/Animator/gamereset-gamereset.lani; go __invokeHandler__ VM59:164 Error: not node js file system!path:res/ba...

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

368. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 76%]

... var data: Array = []; 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"); data.push("res/ui/listskins/5.jpg"); } list.array = data; } private updateItem(cell: Item,...

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

369. 加载sk文件时,报Uncaught getUint16 error - Out of bounds [ 76%]

...eTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init));

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

370. Android studio项目升级Native后,运行程序报错。 [ 76%]

...,打开2D游戏没问题,但打开3D游戏就报错: android.content.res.Resources$NotFoundException: String resource ID #0x0 at android.content.res.Resources.getText(Resources.java:322) at android.content.res.Resources.getString(Resources.java:420) at android.content.Context.getString(Context...

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