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

大约有 619 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0054 秒)

91. LayaAir IDE 2.2.0beta4 动画挂点(骨骼挂点)无效 [ 80%]

...方法即可 /** * - 骨骼挂点 * @param nodeName * @param root * @param Sprite3D */ public static link2Node(nodeName: string, root: Laya.Sprite3D, Sprite3D: Laya.Sprite3D) { //递归调用 let index = 0; let child: Laya.Sprite3D = null; while (true) { child = root.getChildAt(index) as Laya.Sprite...

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

92. 3D模型无法用Tween类吗 [ 80%]

3D模型无法用Tween类吗 //载入并显示模型 var layaMonkey: Laya.Sprite3D =Laya.Sprite3D.load("LayaMonkey/LayaMonkey.lh") as Laya.Sprite3D; scene.addChild(layaMonkey); layaMonkey.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); layaMonkey.transform.localPosition = new Laya.Vecto...

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

93. 请问如何通过Laya.plane创建一个sprite3d的plane? [ 80%]

请问如何通过Laya.plane创建一个sprite3d的plane? 通过数学计算得到了一个Laya.Plane类,我想通过 Laya.PrimitiveMesh.createPlane(h,w)这种方法把这个平面创建出来,应该怎么办?   2021-02-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

94. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 80%]

...l, function(tex) { //使用纹理 var earth1 = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createSphere(5, 32, 32))); earth1.transform.translate(new Laya.Vector3(10, 20, -8)); var earthMat = new Laya.BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1.mesh...

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

95. 物理引擎,刚体施加力效果错误,有人帮忙看下吗 [ 80%]

...tate(new Vector3(-30, 0, 0), true, false);   //添加地板 var floor:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 2000, 100, 100))) as MeshSprite3D; //给地板添加物理组件 var floorCollicar:PhysicsCollider = floor.addComponent(PhysicsCollider); // 添加colli...

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

96. Laya截图3D场景相关模型,导致模型透视! [ 80%]

...thographic = true; camera.orthographicVerticalSize = 5; this.effRes = Laya.Sprite3D.load(resUrl); this.effRes.on(Laya.Event.HIERARCHY_LOADED, this, function(){ this.eff1 = scene.addChild( Laya.Sprite3D.instantiate(this.effRes)); this.eff1.transform.position = new Laya.Vector3(0,0,50); this.eff1.tran...

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

97. [LayaAir3]3.3 sprite3d对象销毁触发脚本onDestroy获取transform异常 [ 80%]

[LayaAir3]3.3 sprite3d对象销毁触发脚本onDestroy获取transform异常 onDestroy时transform已经无法获取 demo展示了一种应用场景,清除tween失败 附件 : --> 3.3_sprite3d对象销毁触发脚本onDestroy获取transform异常_.zip 2025-10-31 添加评论 免费帖 --> 分享 ...

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

98. 把摄像机添加到一个物体上,然后绕着这个物体旋转 [ 80%]

...好摄像机的默认位置角度使其朝向物体就行了 var map: Laya.Sprite3D = Laya.loader.getRes("cj/cj.lh"); this.scene.addChild(map); var cjd0: Laya.Sprite3D = new Laya.Sprite3D(); cjd0.addChild(this.camera); map.addChild(cjd0); cjd0.addComponent(CameraMoveScript); 可是,这样添加的...

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

99. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 80%]

...ne3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { material.albedoTe...

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

100. HIERARCHY_LOADED函数不回调 [ 80%]

...不回调 this.sceneP = Laya.stage.addChild(Laya.Scene.load(name)) as Laya.Sprite3D; //this.sceneP.transform.setTranslate(500,500); this.sceneP.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); this.sceneP.transform.localScale = new Vector3(3, 3, 3); this.sceneP.trans...

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