大约有 346 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)
Laya_社区(129) Laya3.0_api(79) Laya2.0_api(73) Laya2.0_文档(36) laya_api(18) Laya_示例(6) Laya3.0_文档(5)
...### 使用代码设置场景天空 ```typescript var camera:Camera = scene.getChildByName("Main Camera") as Camera; //加入摄像机移动控制脚本 camera.addComponent(CameraMoveScript); //加载相机天空盒材质 BaseMaterial.load("res/threeDimen/skyBox/skyBox1/SkyBox.lmat", Handler.create(n...
来源: Laya2.0_文档 发布时间: 20210715
...。 #### 使用代码设置场景天空 ```typescript var camera = scene.getChildByName("Main Camera"); //加入摄像机移动控制脚本 camera.addComponent(CameraMoveScript); //加载相机天空盒材质 Laya.BaseMaterial.load("res/threeDimen/skyBox/skyBox1/SkyBox.lmat", Laya.Handler.create(nul...
来源: Laya2.0_文档 发布时间: 20210715
...lone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents getHeight hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeCh...
来源: Laya3.0_api 发布时间: 20231102
...e.ls")) as Laya.Scene3D; //从场景获取球型精灵 this.sphere = scene.getChildByName("Sphere") as Laya.MeshSprite3D; //获取球型精灵自带的BlinnPhong材质 this.billinMaterial = this.sphere.meshRenderer.material; ``` > 拿到材质之后,我们可以修改材质或者将这个材质给...
来源: Laya2.0_文档 发布时间: 20210715
...unction(sender:Sprite3D):void { var ms:MeshSprite3D = _disObj3d.getChildByName("mod_CiKeZhuangBei_Body_03") as MeshSprite3D; if(ms) { trace("length " + ms.meshRender.sharedMaterials.length); } } 输出: length 0 2017-01-01 添加评...
来源: Laya_社区 发布时间: 20170101
...load(owner : any):void{ this.scene = owner; this.camera = this.scene.scene.getChildByName("Main Camera") as Laya.Camera; console.log("当前摄像机的名字是:" + this.camera.name); } public _start(state:Laya.RenderState):void{ this.ray = new Laya.Ray(Laya.Vector3.ZERO,Laya.Vector3.ZERO); thi...
来源: Laya_社区 发布时间: 20181020
...app.json文件 小游戏项目 加载有中文的json文件 报错 使用getChildByName()无法得到子节点对象 问题状态 最新活动: 2017-12-13 12:32 浏览: 695 关注: 2 人
来源: Laya_社区 发布时间: 20171213
...中,对组件操作,设置组件的name(为了在runtime实例中通过getChildByName获取子节点),通常设置完name,如果不用IDE里的编译功能,直接在VSCode里跑layaair2-cmd compile任务,运行起来,该组件的name总是没有更新的,通过debug发现还是原来...
来源: Laya_社区 发布时间: 20191127
...显示模型,但是顶点数面数都有 图片不能按轴心旋转 使用getChildByName()无法得到子节点对象 ide compile的时候不会启动一个本地服务器吗? 问题状态 最新活动: 2017-06-28 15:14 浏览: 1401 关注: 2 人
来源: Laya_社区 发布时间: 20170628
...lone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName ...
来源: Laya3.0_api 发布时间: 20231115