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

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

331. laya.d3.core.light.LightSprite_API3.0 [ 64%]

...tion shadowStrength timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getCompo...

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

332. 2.8.0上默认模型不能产生和接受阴影 [ 64%]

....0设置阴影的代码: var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 0)); directionLight.shadowMode = Laya...

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

333. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 64%]

...wScene = <Laya.Scene3D>Util3d.getRes(this.sMapRes, false) Laya.stage.addChild(pNewScene); Util3d.getChildByPath(pNewScene, "Main Camera").active = false; let pBull = <Laya.Sprite3D>Util3d.getRes(this.sBullRes) let pEnemy = <Laya.Sprite3D>Util3d.getRes(this.sEnemyRes) pNewScene.addC...

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

334. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 63%]

... MyScene.load(this._sceneURl) as MyScene; this._scene.output(); Laya.stage.addChild(this._scene); var camera:Laya.Camera = this._scene.getChildByName("Main Camera") as Laya.Camera; camera.addComponent(CameraMoveScript); var tiger:Laya.Sprite3D = this._scene.getChildByName("tiger_idle&...

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

335. 从Unity中编辑并导出摄像机(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 63%]

...加3D场景 var scene = Laya.loader.getRes("monkey/monkey.ls"); Laya.stage.addChild(scene); //从场景中获取摄像机 var camera = scene.getChildByName("Main Camera"); //后续对摄像机的逻辑操作....... } } ``` ​ 在Untiy中,摄像机默认名为“Main Camera”,因此在上述代...

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

336. 粒子特效,播放与克隆有bug [ 63%]

...19-11-26 0 1 分享 微博 QZONE 微信 子艮 赞同来自: let sp3d = lf.addChild(Laya.loader.getRes("res/zhadan/1/LayaScene_zhadan/Conventional/zhadan.ls")) as Scene3D; let spCore = sp3d.getChildByName("Canvas") as Sprite3D; spCore.transform.localPosition = new Vector3(0, 0.7, 90); let tp3d = Spr...

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

337. 如何加载.lh文件 [ 63%]

...写? Laya_Aaron • 2018-05-29 16:45 @灬倪先森_:var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); 这个是示例中的,有几种方法,文档中也有,而且有例子。https://ldc.layabox.com/doc/?nav=zh-as-4-0-5,...

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

338. dialog的popup方法不会关闭其他弹窗 [ 63%]

...new NormalDialog(context); this.normalDialog.popup(true, true); Laya.stage.addChild(this.normalDialog);  }  }     // 弹窗代码   class NormalDialog extends ui.normalDialogUI { constructor( text: string ) { super(); // 设置label文字 this.context.text = text; this.btn_close.on(Laya.Event.C...

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

339. 模型的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之模型和网格) [ 63%]

...模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMes...

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

340. 模型的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之模型和网格) [ 63%]

...模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMes...

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