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

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

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

...给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

82. 添加组件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

83. 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

84. 灯光-方向光 [ 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

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

...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

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

...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

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

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

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

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

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

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

89. 灯光-点光 [ 69%]

... camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //点光源 var pointLight = scene.addChild(new Laya.PointLight()); pointLight.color = new Laya.Vector3(0.1189446, 0.5907708, 0.7352941); pointLight.transform.position = new Laya.Vector3(0.4, 0...

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

90. Unity导出的场景无法加载 [ 69%]

...llider.__proto._onAdded (libs/laya.d3.js:41745)     at Sprite3D.__proto._addComponentInstance (libs/laya.core.js:21498)     at Sprite3D.__proto.addComponent (libs/laya.core.js:21573)     at Function.Utils3D._createNodeByJson (libs/laya.d3.js:10690)     at Function.Utils3D._createNodeByJson (...

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