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

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

861. 场景天空(TypeScript-3D基础(TS)-LayaAir3D之场景渲染配置) [ 54%]

... Laya.BaseMaterial.load("res/threeDimen/skyBox/skyBox1/SkyBox.lmat", Laya.Handler.create(null, function(mat) { var skyRenderer = camera.skyRenderer; skyRenderer.mesh = Laya.SkyBox.instance; skyRenderer.material = mat; })); ``` 效果如下(图3): ![](img/3.png)(图3) 以上使用的天空...

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

862. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 54%]

...threeDimen/scene/LayaScene_AnimationEvent/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube") as Laya.Sprite3D; //添加组件(脚本) var _script = cube.addComponent(SceneScript) as SceneScrip...

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

863. 在Unity中导出拖尾系统(ActionScript-3D基础(AS3)-LayaAir3D之拖尾系统) [ 54%]

...像机 //加载拖尾 Sprite3D.load('LayaScene_tst/Conventional/Sphere.lh',Handler.create(this,function(sp:Sprite3D):void{ //将加载的拖尾添加给示例盒子 box.addChild(sp); //为了体现效果,我们移动盒子和摄影机观察效果 Laya.timer.frameLoop(1,this,function():void{ //使...

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

864. 2d粒子旋转时大小也会随着改变 [ 54%]

...会随着改变 代码: Laya.loader.load("res/Particles/Tail.part", Laya.Handler.create(this, this.OnPariticleAssetsLoaded), null, Laya.Loader.JSON); OnPariticleAssetsLoaded(setting:Laya.ParticleSetting) { let sp = new Laya.Particle2D(setting); sp.pos(200, 200); sp.emitter.start(); sp.play(); Laya...

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

865. 如何解析json文件并获取某对象值? [ 54%]

...值? private jsonParse() { Laya.loader.load("res/atlas/resTest0.json", Handler.create(this, this.onLoaded), null, Loader.JSON); } private onLoaded() { var json : JSON = Laya.Loader.getRes("res/atlas/resTest0.json"); var jsTx = JSON.stringify(json); } 已经通过上面代码获取整个json内容...

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

866. 怎么在api中找到 Laya.loader.load [ 54%]

...api中找到 Laya.loader.load Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,this.onloaded),null,Laya.Loader.ATLAS); 这一句,我想找一下Laya.loader.load的使用说明和使用例子,但是不知道怎么找。在api里我开了Laya。 http://layaair.ldc.layabox.com/api/ind...

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

867. 加载SK文件时,报错如下:Uncaught getUint16 error - Out of bounds [ 54%]

...ader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init)); 2018-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: 骨骼数太大了吧 2018-03-23...

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

868. 解析JSON格式的数据 [ 54%]

...="json/ENDLESS_TABLE.json"; var strJson=Laya.loader.load(fileURL,Handler.create(this,readJsonFinish),null,Loader.JSON); function readJsonFinish() { console.log(strJson); var contact = JSON.parse(strJson); } } cuixueying • 2016-07-26 11:13 Laya.loader.load是预加载JSON字符串,并...

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

869. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 54%]

...n);             Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame));         }         private loadGame(): void {             var resArray = [                 { url: "res/atlas/lobby/create_room.atlas", type: Laya.Loader.ATLAS },   ...

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

870. 保存数据的数组在回调的时候变为undifine [ 54%]

...能console出,那个list中的数据也存在,但没渲染出。 Laya.Handler.create 回调 load方法的progress回调进的次数太少了。是我哪里设置有问题么 Tween的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa...

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