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

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

191. unity导出的3D动画模型,导入 laya环境报错: node._setParent is not a function [ 52%]

... node._setParent is not a function var role3D: Laya.Sprite3D = Laya.loader.getRes("res/lk4.lh") as Laya.Sprite3D; //加载到场景 scene.addChild(role3D);  //此处报错 var ani = role3D.getComponent(Laya.Animator) as Laya.Animator; //播放攻击状态 ani.play(); chrome 调试:  addChild(nod...

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

192. laya.net.Loader_API3.0 [ 51%]

...dByUrl cancelLoadByUrls clearRes clearTextureRes clearUnLoaded event fetch getRes hasListener load loadPackage off offAll offAllCaller on once cacheRes clearRes clearResByGroup createNodes getAtlas getBaseTexture getRes getTexture2D registerLoader setGroup warn Constructors constructor new Loader():...

来源: Laya3.0_api 发布时间: 20231115

193. 设置滤镜(TypeScript-LayaAir基础篇(TS)-位图) [ 51%]

... var originalApe: Sprite = this.createApe(); this.apeTexture = Laya.loader.getRes(this.ApePath); originalApe.x = (Laya.stage.width - this.apeTexture.width * 3) / 2; originalApe.y = (Laya.stage.height - this.apeTexture.height) / 2; } private makeRedApe(): void { //由 20 个项目(排列成 4 x 5 ...

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

194. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 51%]

...te(this, () => {              let item = Laya.loader.getRes("res/scene_Effect/Conventional/Effect_zhujue_attack.lh");             let tarItem = Laya.Sprite3D.instantiate(item);             this.scene.addChild(tarItem);             tarItem....

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

195. GlowFilter和TimeLine/Tween一起用的问题 [ 51%]

...{ ape = new Sprite(); ape.loadImage(apePath);   var texture = Laya.loader.getRes(apePath); ape.x = (Laya.stage.width - texture.width) / 2; ape.y = (Laya.stage.height - texture.height) / 2;   Laya.stage.addChild(ape); }   function applayFilter() { //创建一个发光滤镜 //var glowFilter = new ...

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

196. 小游戏对读取json文件有要求吗?为啥说读取json文件错误啊 [ 51%]

...享 微博 QZONE 微信 liwenhua 赞同来自: this.linkJson = Laya.loader.getRes('res/json/linkUrl.json');这样读取出来不就是就对象了吗,怎么设置编码格式啊??不会啊!!!我都是这样引用,然后直接this.linkJson.XXX进行读取的,如果数值都都是for...

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

197. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 51%]

...omplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/LayaScene_girl/girl.lh"); this.scene.addChild(this.role); //角色位置 this.role.transform.position = new Laya.Vector3(0,1,2); } } new LayaAir3D();   但发布到微信工具运行失败,提示错误如下:...

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

198. 3D粒子特效第一次卡顿最终解决方案 [ 50%]

...ectComplete():void{         var effect:Laya.Sprite3D = Laya.loader.getRes("res/effect/2/Conventional/bullet.lh");         this.compileShader(effect);         //===========放心使用吧=================         var myeffect:Laya.Sprite3D = effect.clone();     } ...

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

199. 3D中如何限制角色的行走区域? [ 50%]

...t(13) as MeshSprite3D;               var texture:Texture2D = Loader.getRes("res/heightMap.png") as Texture2D;               //通过高度图纹理和最大高度最小高度生成MeshTerrainSprite3D               var terrainSprite:MeshTerrainSprite3D = MeshTerrainSprite3D.creat...

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

200. laya.net.LoaderManager_API3.0 [ 49%]

...s clearResByGroup clearTextureRes clearUnLoaded create decodeBitmaps event getRes hasListener load off offAll offAllCaller on once setGroup Constructors constructor new LoaderManager(): LoaderManager Defined in laya/net/LoaderManager.ts:72 创建一个新的 LoaderManager 实例。 注意:请使...

来源: Laya3.0_api 发布时间: 20231102