大约有 266 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0037 秒)
Laya3.0_api(67) Laya_社区(64) Laya2.0_api(60) laya_api(56) Laya3.0_文档(12) Laya2.0_文档(6) Laya2.0_示例(1)
...ited = false; this.destroy(true); }; //通过传入粒子特效的路径,清除缓冲池 static ClearPool(root_path: string): void { if (root_path == null) { root_path = ""; } Pool.getInstance().ClearGroup("Particle3D@" + root_path, this, function(particle_3d:Particle3D) { particle_3d.Clean(); });...
来源: Laya3.0_文档 发布时间: 20250104
...ne); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transf...
来源: Laya2.0_文档 发布时间: 20210715
...ne); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transf...
来源: Laya2.0_文档 发布时间: 20210715
...机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //清除摄像机的标记 camera.clearFlag = BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vector3(1, 1, 1); direc...
来源: Laya2.0_文档 发布时间: 20210715
...如果没有按照5.2那样构建模板目录,那么这个目录不会被清除或者修改。 (图5-3) 修改生成的工程模板(openDataContext目录里的文件),推荐使用一个轻量的第三方Canvas引擎解决这个需求。开发者可以使用此引擎制作自定义的好...
来源: Laya3.0_文档 发布时间: 20251010
...:", msg); } else { console.log("接收到非字符串数据", msg); } // 清除输入缓存,避免残留数据 this.socket.input.clear(); } /** 连接关闭回调 */ private onSocketClose(e: any): void { console.log("WebSocket 连接已关闭", e); } /** 连接错误回调 */ private onConnectEr...
来源: Laya3.0_文档 发布时间: 20251010