大约有 994 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0164 秒)
Laya_社区(720) Laya3.0_api(80) Laya2.0_api(74) laya_api(68) Laya2.0_文档(36) Laya3.0_文档(8) Laya_示例(7) Laya2.0_示例(1)
...取可行走区域模型 var meshSprite3D: Laya.MeshSprite3D = this.scene.getChildByName('Scenes').getChildByName('HeightMap') as Laya.MeshSprite3D; //使可行走区域模型隐藏 meshSprite3D.active = false; var heightMap: Laya.Texture2D = Laya.Loader.getRes("../../res/threeDimen/scene/TerrainSce...
来源: Laya_社区 发布时间: 20180309
...e.addChild(scene); //从场景中获取摄像机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //后续对摄像机的逻辑操作....... } } } ``` 在Untiy中,摄像机默认名为“Main Camera”,因此在上述代码中,通过scene的getChildByName(“Main Camera...
来源: Laya2.0_文档 发布时间: 20210715
...emByCreateFun("gk2v1",gkpref.create,gkpref); var anim:Laya.Animation = OBJ.getChildByName("NPCdie") as Laya.Animation; anim.source="Anim/z2die.ani"; this.Scene.addChild(OBJ); })); bundle.js:26 lost skin: zombie/z2/z2_0.png ,you may load pics first laya.core.js:22929 lost skin: zombie/z2/z2_1...
来源: Laya_社区 发布时间: 20201022
...(idx >= data.length) { return; } cell.removeChildren(); var root = cell.getChildByName('root'); if (!root) { root = new Sprite(); root.pos(0, 0); root.name = "root"; cell.addChild(root); } 。。。。。 生成的 图片 从一个场景中回来在生成 他的 子物体 Sprite 在切换场景...
来源: Laya_社区 发布时间: 20170324
...--- updateItem(cell:Item,index:number){ var img1 = cell.getChildByName("img1") as Laya.Image; var img2 = cell.getChildByName("img2") as Laya.Image; img1.on("click",this,this.onRefresh,[index]) //当索引相同时 BOX 高度改变 ...
来源: Laya_社区 发布时间: 20190522
...blic updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_...
来源: Laya_社区 发布时间: 20171202
...blic updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_...
来源: Laya_社区 发布时间: 20181112
...blic updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_...
来源: Laya_社区 发布时间: 20180724
...Texture = tex; })); box.meshRenderer.material = material; var monkey = res.getChildByName("LayaMonkey"); //查找节点 var bonePoint:Sprite3D = this.findChild(monkey,"bonepoint"); //将盒子精灵添加到找到的骨骼节点上 bonePoint&&bonePoint.addChild(box); })); ``` > 节点查找 ```types...
来源: Laya2.0_文档 发布时间: 20210715
...Texture = tex; })); box.meshRenderer.material = material; var monkey = res.getChildByName("LayaMonkey"); //查找节点 var bonePoint:Sprite3D = this.findChild(monkey,"bonepoint"); //将盒子精灵添加到找到的骨骼节点上 bonePoint&&bonePoint.addChild(box); })); ``` > 节点查找 ```types...
来源: Laya2.0_文档 发布时间: 20210714