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

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

71. 高级应用-寻路导航 [ 72%]

...给terrainSprite添加PathFind组件 var pathFingding = this.terrainSprite.addComponent(Laya.PathFind); pathFingding.setting = { allowDiagonal: true, dontCrossCorners: false, heuristic: PathFinding.core.Heuristic.manhattan, weight: 1 }; var aStarMap = Laya.Loader.getRes("../../res/threeDimen/scene/T...

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

72. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 72%]

...var camera: Camera = scene.getChildByName("Main Camera") as Camera; camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯光移动脚本添加到摄像机上 var moveScript: LightMoveScript = camera.ad...

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

73. 角色身上挂了Animation,有一个动作,导出后要怎么播放? [ 71%]

...一个lsani动作,我想播放这个动作要怎么写? 我想给角色addComponent一个Animation发现不行。如果addComponent一个Animator,然后把动作载入成AnimationClip,addClip给Animator会崩 附件 : --> role_2.zip 2017-11-30 添加评论 免费帖 --> 分享 微博 QZONE ...

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

74. 添加组件PhysicsCollider 时报 Cannot read property 'btCollisionObject' of undefined [ 71%]

...放动画,但在在添加 var boxCollider:PhysicsCollider = saiziSprite.addComponent(PhysicsCollider)as PhysicsCollider; 时报错了,报错如下 preload.js:55 at PhysicsCollider.__proto._onAdded (file:///E:/ycyheroH5/ycyZYWZW/Client/bin/js/bundle.js:79400:29) at SkinnedMeshSprite3D.__proto._ad...

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

75. 3D灯光与阴影 · LayaAir3.0文档 · LAYABOX [ 71%]

...点光源 let pointLight = new Laya.Sprite3D(); let pointCom = pointLight.addComponent(Laya.PointLightCom); this.scene.addChild(pointLight); //点光源的颜色 pointCom.color = new Laya.Color(1.0, 0.5, 0.0, 1); //设置点光源的范围 pointCom.range = 3.0; pointLight.transform.position = new La...

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

76. 灯光-方向光 [ 71%]

... camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); directionLight.direction = new Laya.Vector3(0, -1.0, -1.0); v...

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

77. 销毁 new 出的带有 PhysicsCollider 的正方体模型报错 [ 71%]

...ya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))) as Laya.MeshSprite3D; this.box.addComponent(Laya.PhysicsCollider); this.box.destroy();引擎版本 LayaAirIDE2.0_beta.5 报错: Uncaught TypeError: Cannot read property 'destroy' of null     at PhysicsCollider.__proto._onDestroy (laya.d3.js:17738)   ...

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

78. 角色碰撞器添加复合型碰撞形状,报错Qt[a[((a[(t >> 2)] + 8) >> 2)]] is not a function [ 71%]

...ne") as Laya.MeshSprite3D; let character: Laya.CharacterController = plane.addComponent(Laya.CharacterController);  let collider_shape_box = new Laya.BoxColliderShape(2.5, 0.8, 0.8); collider_shape_box.localOffset.x = -0.5;  let collider_shape:Laya.CompoundColliderShape = new Laya.CompoundCollider...

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

79. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 70%]

...象的内容的基类。在给物体添加组件时,需要物体使用`addComponent`方法。 ![](img/1.png)(图1) **Script3D** 这是3D世界中的脚本,继承自组件,是组件的一种。该类被定义为 '抽象类' ,不允许实例。该类提供了一系列虚方法。详细使用可...

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

80. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 70%]

...象的内容的基类。在给物体添加组件时,需要物体使用`addComponent`方法。 ![](img/1.png)(图1) **Script3D** 这是3D世界中的脚本,继承自组件,是组件的一种。该类被定义为 '抽象类' ,不允许实例。该类提供了一系列虚方法。详细使用可...

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