大约有 225 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0035 秒)
Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya_社区(24) Laya2.0_文档(16) Laya_示例(12) Laya3.0_文档(1) Laya2.0_示例(1)
...seMaterials[2] = customMaterial3; baseMaterials[3] = customMaterial4; dude.getChildAt(0).getChildAt(0).skinnedMeshRender.sharedMaterials = baseMaterials; dude.transform.position = new Laya.Vector3(0, 0.5, 0); }); var earth = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh(0.5, 128, 128))); ...
来源: Laya_示例 发布时间: 20251209
...= new Laya.Vector3(8, 8, 8); this.layaMonkeyMeshSprite3D = this.layaMonkey.getChildAt(0).getChildByName("LayaMonkey"); //添加盒型碰撞器 var boxCollider = this.layaMonkeyMeshSprite3D.addComponent(Laya.BoxCollider); boxCollider.setFromBoundBox(this.layaMonkeyMeshSprite3D.meshFilter.sharedMesh.b...
来源: Laya_示例 发布时间: 20251209
...ateApe(); redApe.filters = [redFilter]; var firstChild:Sprite = Laya.stage.getChildAt(0) as Sprite; redApe.x = firstChild.x + apeTexture.width; redApe.y = firstChild.y; } private function grayingApe():void { //由 20 个项目(排列成 4 x 5 矩阵)组成的数组,灰图 var grayscaleMat:Arra...
来源: Laya2.0_文档 发布时间: 20210715
...,node.name); let obj; for(let i=node.numChildren-1;i>=0;i--){ obj= node.getChildAt(i); obj.destroy(); } } 或者 /* 从舞台移除模型对象 @param node 节点 */ base_remove(node){ if(node.numChildren<=0)return; console.log('移除',node.name); node.destroyChildren(); } 以上两种...
来源: Laya_社区 发布时间: 20191119
... (var i = 0; i < Laya.stage.numChildren; i++) { var object = Laya.stage.getChildAt(i); // object.removeSelf(); Laya.stage.removeChildAt(i); object.destroy(true); }该对象继续在屏幕上显示。。。(IDE版本1.7.10.bate) 使用Laya.stage.destroyChildren();是可以移除该对象的 20...
来源: Laya_社区 发布时间: 20171012
...rm.localScale = new Laya.Vector3(5, 5, 5); var animator = (this.layaMonkey.getChildAt(0)).getComponentByType(Laya.Animator); var totalAnimationClip = animator.getClip("Take_001"); animator.addClip(totalAnimationClip, "walk", 40, 70); animator.play("walk", 2.5); //初始化相机 var moveCamera = thi...
来源: Laya_示例 发布时间: 20251209
...引:" + index); let checkBoxItem:Laya.CheckBox = this._list.getChildAt(index).getChildAt(0) as Laya.CheckBox; if(checkBoxItem!=null){ switch(checkBoxItem.name.trim()){ case "0":{ ...
来源: Laya_社区 发布时间: 20241014
...然后根据数量进行for循环获取name为b的所有物体 Laya.stage.getchildAt(i);//根据下标获取物体 2018-04-16 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 lu632375951 相关问题 btn 鼠标移动上去默认文本颜...
来源: Laya_社区 发布时间: 20180416
...eDimen/staticModel/grid/plane.lh")); //设置地板可以接受阴影 grid.getChildAt(0).meshRenderer.receiveShadow = true; //获取一个静态网格猴子 var staticLayaMonkey = this.scene.addChild(new Laya.MeshSprite3D(Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/Laya...
来源: Laya2.0_文档 发布时间: 20210715
...Model/grid/plane.lh")) as Sprite3D; //设置地板可以接受阴影 (grid.getChildAt(0) as MeshSprite3D).meshRenderer.receiveShadow = true; //获取一个静态网格猴子 var staticLayaMonkey:MeshSprite3D = scene.addChild(new MeshSprite3D(Loader.getRes("res/threeDimen/skinModel/LayaMonkey/Assets/...
来源: Laya2.0_文档 发布时间: 20210715