大约有 428 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0038 秒)
Laya_社区(163) Laya3.0_api(79) Laya2.0_api(73) Laya2.0_文档(58) Laya_示例(28) laya_api(14) Laya3.0_文档(8) Laya2.0_示例(5)
...脚本,所以想做成预制体,不用每次实例化出来的时候去addComponent然后再去赋值数据 李友涛 • 2019-12-12 17:00 你好,问题解决了吗
来源: Laya_社区 发布时间: 20190628
....1; this.ball = this.scene3D.getChildByName("Ball") as Sprite3D; this.ball.addComponent(BallScript2) BallScript2 onAwake this.ball = this.owner as Sprite3D; this.rigid = this.ball.getComponent(Rigidbody3D); this.rigid.overrideGravity = true; this.rigid.gravity = new Vector3(0,-0.3,0); this....
来源: Laya_社区 发布时间: 20200512
...orm url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener is...
来源: Laya3.0_api 发布时间: 20231115
...男角色添加贴图动画 var manAni:Laya.SkinAnimations = this.roleMan.addComponent(Laya.SkinAnimations) as Laya.SkinAnimations; manAni.url="man/hero.ani"; manAni.player.play(); // play函数调用后出错。!!! Warning: discard property,please use templet property instead. 2018-0...
来源: Laya_社区 发布时间: 20180725
...ew Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; camera.addComponent(CameraMoveScript); var map=Laya.Sprite3D.load("H5/Main.lh"); scene.addChild(map); 2017-05-15 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 厉害,好的,有问题及时沟通! 2017-05-15 0 0 ...
来源: Laya_社区 发布时间: 20170515
...ya.MeshSprite3D) { var meshSprite3D = spirit3D; var skinAni = meshSprite3D.addComponent(Laya.SkinAnimations); skinAni.templet = Laya.AnimationTemplet.load(skinAniUrl[0]); skinAni.player.play(); } for (var i = 0, n = spirit3D._childs.length; i = [ "../../res/threeDimen/skinModel/Zombie/old/Assets/Zom...
来源: Laya_示例 发布时间: 20241119
...ypescript ..... //创建刚体碰撞器 var rigidBody:Rigidbody3D = sphere.addComponent(Rigidbody3D); //设置刚体为Kinematic,仅可通过transform属性移动物体 rigidBody.isKinematic = true; ...... //在场景上添加的loop事件 private function onKeyDown():void { KeyBoardManager.hasKey...
来源: Laya2.0_文档 发布时间: 20210715
...)): ```typescript ..... //创建刚体碰撞器 var rigidBody = sphere.addComponent(Laya.Rigidbody3D); //设置刚体为Kinematic,仅可通过transform属性移动物体 rigidBody.isKinematic = true; ...... //在场景上添加的loop事件 onKeyDown(){ Laya.KeyBoardManager.hasKeyDown(87) && t...
来源: Laya2.0_文档 发布时间: 20210715
...D = scene.addChild(Sprite3D.load("aim/aim-aim.lm")); rootAnimations = mesh.addComponent(RigidAnimations) as RigidAnimations; //rootAnimations.url = "aim/aim.lrani"; rootAnimations.templet = AnimationTemplet.load("aim/aim.lrani"); //rootAnimations.player.play(0); rootAnimations.player.play(); 附件 ...
来源: Laya_社区 发布时间: 20170613
...Laya.SphereColliderShape(1); //给球添加刚体 var sphereRigid = sphere.addComponent(Laya.Rigidbody3D); //将碰撞盒添加到刚体上 sphereRigid.colliderShape = sphereShape; ``` 创建简单的物理几何体时,不同的模型只是需要创建不同的网格(Mesh)和碰撞盒(Collid...
来源: Laya2.0_文档 发布时间: 20210715