大约有 420 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0046 秒)
Laya_社区(156) Laya3.0_api(79) Laya2.0_api(73) Laya2.0_文档(53) Laya_示例(28) laya_api(14) Laya3.0_文档(12) Laya2.0_示例(5)
...给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_示例 发布时间: 20250220
...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
...一个lsani动作,我想播放这个动作要怎么写? 我想给角色addComponent一个Animation发现不行。如果addComponent一个Animator,然后把动作载入成AnimationClip,addClip给Animator会崩 附件 : --> role_2.zip 2017-11-30 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20171130
...放动画,但在在添加 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
...点光源 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_文档 发布时间: 20250103
... 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_示例 发布时间: 20250220
...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
...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
...象的内容的基类。在给物体添加组件时,需要物体使用`addComponent`方法。 (图1) **Script3D** 这是3D世界中的脚本,继承自组件,是组件的一种。该类被定义为 '抽象类' ,不允许实例。该类提供了一系列虚方法。详细使用可...
来源: Laya2.0_文档 发布时间: 20210714
...象的内容的基类。在给物体添加组件时,需要物体使用`addComponent`方法。 (图1) **Script3D** 这是3D世界中的脚本,继承自组件,是组件的一种。该类被定义为 '抽象类' ,不允许实例。该类提供了一系列虚方法。详细使用可...
来源: Laya2.0_文档 发布时间: 20210715