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

大约有 430 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0045 秒)

31. Sprite3D.instantiate不成功,总是报错 [ 87%]

Sprite3D.instantiate不成功,总是报错 Sprite3D.instantiate(spr); spr已经在显示游戏中,我用上面的代码克隆总是出错,跳到:laya.d3.js中:   请问该如何解决?   使用克隆是因为同样一个模型,用Sprite.load.on的HIERARCHY_LOADED就只执行一次...

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

32. 加载到舞台的3D模型不显示贴图 [ 86%]

...载lh文件不显示的原因。 var staticMesh = scene.addChild(new Laya.Sprite3D()); staticMesh.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { var meshSprite = sprite.getChildAt(0);//此对象不一定是MeshSprite3D类型,会导致出错 var mesh = meshSprite.meshFilter.sharedMesh;...

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

33. Resources already exist,is repeated loading 加载特效报重复加载 [ 86%]

...eValue:number = 0;              private layaMonkey_clone1:Laya.Sprite3D;     private layaMonkey_clone2:Laya.Sprite3D;     private layaMonkey_clone3:Laya.Sprite3D;      private clone1Transform:Laya.Transform3D;     private clone2Transform:Laya.Transform3D;     private...

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

34. 3D粒子特效初始化卡顿 [ 86%]

...下为示例代码: var sprite= Laya.loader.getRes(this._stlurl) as Laya.Sprite3D; this.skill = Laya.Sprite3D.instantiate(sprite); target.addChild(this.skill); this.Play();   这种卡顿在PC谷歌浏览器上不明显,但手机上就很明显了,另外在IDE的layaair调试器中也很明...

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

35. 高级应用-寻路导航 [ 85%]

...url: "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 }, { url: "../../res/threeDimen/scene/TerrainScene/Assets/HeightMap.png", clas: Laya.Texture2D, priority: 1, params: [true] }, { url: "../../res/threeDimen/scene/TerrainScene/Assets/AStarMap.png", clas: ...

来源: Laya_示例 发布时间: 20240929

36. 咨询在Laya.Sprite3D中,是否含有类似于 Sprite 中的getbounds函数 [ 85%]

咨询在Laya.Sprite3D中,是否含有类似于 Sprite 中的getbounds函数 咨询在Laya.Sprite3D中,是否含有类似于 Sprite 中的getbounds函数,我的应用场景是在2d背景下,显示3D人物。,在做了坐标映射convertScreenCoordToOrthographicCoord 后,发现定位的...

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

37. 如何动态添加Animator和加载AnimationClip并播放 [ 85%]

...lm和lsani并播放动画? 下面的代码实现不了: var layaScene:Sprite3D = scene.addChild(Sprite3D.load("res/LayaScene/layaScene.lh")) as Sprite3D;       layaScene.once(Event.HIERARCHY_LOADED, this, function():void{       var meshSprite:Sprite3D=layaScene.getChildAt(0) as Sprite3D; ...

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

38. 自定义shader-边缘光照shader [ 85%]

...ght.direction = new Laya.Vector3(1, -1, 0); var dude = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/dude/dude.lh")); dude.once(Laya.Event.HIERARCHY_LOADED, this, function () { var customMaterial1 = new CustomMaterial(); customMaterial1.setDiffuseTexture(Laya.Texture2D.load("../....

来源: Laya_示例 发布时间: 20240929

39. laya.d3.core.MeshSprite3D [ 85%]

...cumentationAll Packages | All Classes | Index | Frames No Frames MeshSprite3DProperties | Methods | Events | Constants Packagelaya.d3.coreClasspublic class MeshSprite3DInheritanceMeshSprite3D RenderableSprite3D Sprite3D ComponentNode Node EventDispatcher ObjectSubclasses MeshTerrainSprite3...

来源: laya_api 发布时间: 20170929

40. 3d模型预加载后二次调用报错 [ 84%]

...二次调用报错 使用Laya.loader.create 预加载,第一次用Laya.Sprite3D.load("xxx.lh").getChildAt(0) 可以创建,第二次再调用Laya.Sprite3D.load("xxx.lh").getChildAt(0) 创建就返回undefined了,help~ 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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