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

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

231. 播放动画(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 58%]

...liooping属性为true** ```typescript //获取精灵 var monkey:Sprite3D = Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"); scene.addChild(monkey); //获取角色动画组件 var ani:Animator = monkey.getChildAt(0).getComponent(Animator); //创建一个动画动作状态 var state...

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

232. 单选框组容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 58%]

...res/ui/radioButton (2).png", "resources/res/ui/radioButton (3).png"]; Laya.loader.load(this.skins).then(() => { this.onLoadComplete(); }); } private onLoadComplete(e: any = null): void { for (let i: number = 0; i < this.skins.length; ++i) { let rg: Laya.RadioGroup = this.createRadioGroup(this....

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

233. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 58%]

...JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onCompl...

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

234. Laya.MiniAdpter.downLoadFile缓存的文件无法读取的问题 [ 58%]

...e { this.DoLoadData(url); } } protected DoLoadData(url:string):void { Laya.loader.load(url, Laya.Handler.create(this, this.OnLoadDataCb)); } protected OnDownloadFileInWxOk(args:any, result:any, data:any):void { console.log("OnDownloadFileInWxOk"); console.log("" + result + ", data: " + data); if (re...

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

235. 安卓app加载场景错误 [ 57%]

...9) at ResInfo.__proto.event (http://192.167.0.100/h5/layawe ... 490:28) at LoaderManager.__proto._endLoad (http://192.167.0.100/h5/layawe ... 291:11) at Loader.onLoaded (http://192.167.0.100/h5/layawebtest/libs/laya 2018-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

236. 导出插件导出模型不能用 [ 57%]

...导出插件,导出了带box碰撞体的模型.用这种方式加载 Laya.loader.create(["t01/t01.ls", "DoorShelf/shelf.lh", "LayaScene_layaScene/layaScene.lh"], Laya.Handler.create(this, onComplete)); ... var shelf = scene.addChild(Laya.Sprite3D.load("LayaScene_layaScene/layaScene.lh")); shelf.tran...

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

237. 2D网格渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...用后执行,例如节点被添加到舞台后 onEnable(): void { Laya.loader.load("resources/layabox.png", Laya.Loader.IMAGE).then(() => { this.setMesh2DRender(); }); } // 配置2D网格渲染器 setMesh2DRender(): void { let mesh2Drender = this.layaMonkey.getComponent(Laya.Mesh2DRender); // ...

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

238. 如何为灯光添加阴影(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 57%]

... ```typescript // A plane receive shadow. var grid = scene.addChild(Laya.Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); grid.getChildAt(0).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite = this.addPBRSphere(Laya.PrimitiveMesh.createSphere(0.1...

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

239. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 57%]

...下: ```typescript //先加载plf类型的合并后文件Image.json Laya.loader.load([{url: "res/Image.json", type: "plf"}], Handler.create(this, function():void { //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:T...

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

240. laya2.0版本支持MeshColliderShape吗 [ 56%]

...a.core.js:1143)     at ResInfo.__proto.event (laya.core.js:899)     at LoaderManager.__proto._endLoad (laya.core.js:14971)     at Loader.onLoaded (laya.core.js:14941)     at EventHandler.__proto.runWith (laya.core.js:1143)   如果把报错的地方注释掉,下面这行报错 btGImpactM...

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