大约有 416 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0050 秒)
Laya_社区(156) Laya3.0_api(79) Laya2.0_api(73) Laya2.0_文档(53) Laya_示例(28) laya_api(14) Laya3.0_文档(8) Laya2.0_示例(5)
...3D.load("./res/Xinzhaoyun/Zhaoyun_skin.lh")); var ani = hero.addComponent(Laya.SkinAnimations); ani.templet = Laya.AnimationTemplet.load("./res/Xinzhaoyun/Zhaoyun_standfight.lsani"); ani.player.play(); var hero = sphere.addChild(new Laya.Mes...
来源: Laya_社区 发布时间: 20161205
...ipRush/LayaProject/car/bin/libs/laya.core.js:7154:11) at Sprite3D.__proto._addComponentInstance (/Users/tuyoo/client5/work/Laya_work/FlipRush/LayaProject/car/bin/libs/laya.core.js:13788:35) at Sprite3D.__proto.addComponent (/Users/tuyoo/client5/work/Laya_work/FlipRush/LayaProject/car/bin/libs/laya.c...
来源: Laya_社区 发布时间: 20190107
...D; //给地板添加物理组件 var floorCollicar:PhysicsCollider = floor.addComponent(PhysicsCollider); // 添加collidershape floorCollicar.colliderShape = new BoxColliderShape(10,0,2000); //加载精灵 Sprite3D.load("LayaScene_cu_demo/Conventional/Cu.lh", Handler.create(null, function(sp:Spr...
来源: Laya_社区 发布时间: 20190417
...e3D; //创建静态碰撞器 let staticCollider:Laya.PhysicsCollider = box.addComponent(Laya.PhysicsCollider); //设置为触发器,取消物理反馈 staticCollider.isTrigger = true; /* ……省略若干代码 */ ``` #### 2.2 理解各种碰撞器 ##### 2.2.1 静态碰撞器 `PhysicsCollider` Laya...
来源: Laya2.0_文档 发布时间: 20210715
...orm url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addLine addLines bubbleEvent callLater clear clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents get...
来源: Laya3.0_api 发布时间: 20231115
...etComponent(Laya.PhysicsCollider); if(!boxCollider){ boxCollider = cardOne.addComponent(Laya.PhysicsCollider) as Laya.PhysicsCollider; boxCollider.colliderShape = new Laya.BoxColliderShape(b, 0, c); } this.MainScene3D.addChild(cardOne); cardOne.transform.position = pos; cardOne.transform.rotate(new ...
来源: Laya_社区 发布时间: 20191223
... 部分代码: this.characterController = this._tempVirtualMoveGo.addComponent(Laya.CharacterController); let sphereShape = new Laya.CapsuleColliderShape(0.5, 1); sphereShape.localOffset = new Laya.Vector3(0, 0.3, 0); this.characterController.colliderShape = sphereShape; this.characterContro...
来源: Laya_社区 发布时间: 20190626
....rotate(new Laya.Vector3(0, 45, 0), false, false); const rigidBody = box.addComponent(Laya.CannonRigidbody3D) as Laya.CannonRigidbody3D; const shape = new Laya.CannonBoxColliderShape(1, 1, 1); shape.localOffset = new Laya.Vector3(0, 0.1, 0); //模型会沿着y轴正方向移动 rigidBody.isKinem...
来源: Laya_社区 发布时间: 20200915
...一个小问题。监听不到动画结束。。。 var anifish2 = fish2.addComponent(Laya.SkinAnimations); anifish2.templet = Laya.AnimationTemplet.load("fish/haitun/haitun.lsani"); anifish2.player.playByFrame(0,1.0,2147483647,0,60,30);//游动 // anifish2.player.playByFrame(0,1.0,2147483647,60,145...
来源: Laya_社区 发布时间: 20170927
... let mesh = v as MeshSprite3D; mesh.addComponent(SkinAnimations); this.meshes.push(mesh); } this.switchAnimation('idle'); } private switchAnimation(name:s...
来源: Laya_社区 发布时间: 20170608