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

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

361. 给模型动态添加脚本报错 [ 68%]

....js:13226)     at goldItemNode._onAdded (libs/laya.d3.js:10592)     at Sprite3D._addComponentInstance (libs/laya.core.js:13244)     at Sprite3D.addComponent (libs/laya.core.js:13291)     at game_scene.showPlayerGold (js/bundle.js:278)     at game_scene.onPreLoadFinish (js/bundle.js:210)  ...

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

362. unity导出的ls和lh文件发布到微信小程序,用微信开发者工具打开报错 [ 68%]

...e root type must be Scene,please use other function to load this file."或"Sprite3D: The .lh file root type must be Sprite3D,please use other function to load this file." 跟了一下,发现__proto.onAsynLoaded这个function接收的参数data在layaIDE中被正确解析为json数组,而在微...

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

363. 我看到这段话后,我 [ 68%]

...转后可以看到背面 如何在IDE上看到帧动画的效果 在一个sprite3D上添加子物体camera ,也能够看到其他的物体。。。请问如何在摄像机中只看到一个想看到的sprite3D对象呢? [LayaAir 2.0]unity插件安装之后只能看到account和help 问题状态 ...

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

364. laya.d3.component.animation.CameraAnimations [ 68%]

... 获取播放器当前动画的节点数量。 KeyframeAnimations owner : Sprite3D[read-only] 获取所属Sprite3D节点。 Component3D player : AnimationPlayer[read-only] 获取动画播放器。 KeyframeAnimations started : Boolean是否已执行start函数。Component3D templet : AnimationTem...

来源: laya_api 发布时间: 20170603

365. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 67%]

...l, function(tex) { //使用纹理 var earth1 = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(5, 32, 32))); earth1.transform.translate(new Laya.Vector3(10, 20, -8)); var earthMat = new Laya.BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1...

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

366. 请问Laya如何使用第三方物理库 [ 67%]

... CannonRigidbody extends Laya.Script3D { static map: { [key: number]: Laya.Sprite3D } = {}; body: CANNON.Body; t: Laya.Transform3D; public onCollisionCB: (s: Laya.Sprite3D) => void; public ignoreRotate: boolean = false; ...OnAwake里面创建CANNON.Body, OnEnable里面把CANNON.Body加入到CANNO...

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

367. 抖音小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...egClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //...

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

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

...ader。 private loadEffectComplete():void{         var effect:Laya.Sprite3D = Laya.loader.getRes("res/effect/2/Conventional/bullet.lh");         this.compileShader(effect);         //===========放心使用吧=================         var myeffect:Laya.Sprite3D = effe...

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

369. 2.0.1beta的导入unity导出的场景出错 [ 67%]

...在unity里面LayaRun预览没有任何问题,也成功导出了Scene和Sprite3D。但是把这些放到项目bin文件夹下之后,对着文档进行更改之后,F5调试就报错了。 2019-03-18 0 0 分享 微博 QZONE 微信 由纪 赞同来自: 同样遇到这样的问题,请问该怎...

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

370. 3d场景下面有张2d的图片,当鼠标焦点不在该网页时,2d图片为啥会闪动 [ 67%]

...form.rotate(new Vector3(-30,0,0),true,false);             var map:Sprite3D = Sprite3D.load("3d/zhuoZi/ZhuoZi.lh");             map.transform.localScale = new Vector3(0.1, 0.1, 0.1);             scene.addChild(map);   附件 : --> 2017-03-14 添加评论 免费帖 --> 分...

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