大约有 2 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0015 秒)
...内容的基类。 通过代码也可以添加组件,需要物体使用addComponent方法 //添加Rigidbody3D组件 let rigidBody = this.layaMonkeyParent.addComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D; //创建盒子形状碰撞器 var boxShape = new Laya.BoxColliderShape(1, 1, 1); //设置盒...
来源: Laya3.0_文档 发布时间: 20250103
...tion; moveCamera.transform.rotate(this._rotation, true, false); moveCamera.addComponent(CameraMoveScript); //设置鼠标弹起事件响应 Laya.stage.on(Event.MOUSE_UP, this, function (): void { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCou...
来源: Laya3.0_文档 发布时间: 20230303