大约有 596 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0068 秒)
Laya_社区(385) Laya3.0_api(135) Laya2.0_文档(25) Laya_示例(20) Laya3.0_文档(15) Laya2.0_示例(8) laya_api(5) Laya2.0_api(3)
...{ /** * @ 监听src目录下的所有子目录的所有文件, * @ 延迟1000毫秒,才执行下次监听,避免手欠的同学,因连续保存触发多次连续编译 * @ 监听生效后执行的函数 */ watch('src/**/*.*', {delay:1000}, compile); }); ``` > 了解更多gulp任务监听,...
来源: Laya2.0_文档 发布时间: 20210715
... 判断飞机是否移动到舞台外部,然后移除回收 if(role.y>1000 || !role.visible || (role.isBullet && role.y < -20)){ // 从舞台移除 role.removeSelf(); // 回收前重置属性信息 role.isBullet = false; role.visible = true; // 回收到对象池 Laya.Pool.recover("r...
来源: Laya_社区 发布时间: 20170525
...style type="text/css"> *{margin:0px;padding:0px;} body{height:1000px;} <!--#AppConfirm{position:relative;margin:0 auto;}--> #modlue{ position:fixed;left:50%;top:50%;width:400px;height:260px; margin-left:-200px;margin-top:-150px; visibility:hidden;background-color:#fff;z-index:100;...
来源: Laya_社区 发布时间: 20181214
...terrain/terrain.ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-38, 180, 0), false, false); camera.transform.translate(new Laya.Vector3(-5, 20, -30), false); camera.addComponent(CameraMoveScript); scene.once(Laya.Event.HIERARCHY_LOADED, th...
来源: Laya_示例 发布时间: 20260303
...Count}/${stats.config.maxLargeTextures}`); // 定期监控 Laya.timer.loop(1000, this, () => { const stats = atlasManager.getStatistics(); if (stats.usageRate > 0.9) { console.warn("图集空间使用率超过 90%,考虑增加 maxLargeTextures"); } }); 2.7 清理与销毁 清理未使用的...
来源: Laya3.0_文档 发布时间: 20260131
...lt; 24; i++) { button.text = g_list_word; } //开始计时 Laya.timer.loop(1000, this, gameCounter); } } 2016-06-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同来自: 感谢,很棒!d=====(...
来源: Laya_社区 发布时间: 20160623
...本地看效果延迟一秒,真实项目不需要延迟 Laya.timer.once(1000, this, () => { //跳转到入口场景 Laya.Scene.open("Scenes/Index.ls"); //不要使用Laya.Scene.open("./Scenes/Index.ls"); }); }); // 侦听加载失败 Laya.loader.on(Laya.Event.ERROR, this, this.onError); }); } /...
来源: Laya3.0_文档 发布时间: 20241014
...本地看效果延迟一秒,真实项目不需要延迟 Laya.timer.once(1000, this, () => { //跳转到入口场景 Laya.Scene.open("Scenes/Index.ls"); //不要使用Laya.Scene.open("./Scenes/Index.ls"); }); }); // 侦听加载失败 Laya.loader.on(Laya.Event.ERROR, this, this.onError); }); } /...
来源: Laya3.0_文档 发布时间: 20251105
...s.lastMouseY; } public get deltaTime(): number { return Laya.timer.delta / 1000; } public deltaWheel: number = 0; public FORWORD: Vector3 = new Vector3(); public get GetForward(): Vector3 { this.transform.getForward(this.FORWORD); return this.FORWORD } protected lastMouseX: number = 0; protected las...
来源: Laya_社区 发布时间: 20170714
...s.lastMouseY; } public get deltaTime(): number { return Laya.timer.delta / 1000; } public deltaWheel: number = 0; public FORWORD: Vector3 = new Vector3(); public get GetForward(): Vector3 { this.transform.getForward(this.FORWORD); return this.FORWORD } protected lastMouseX: number = 0; protected las...
来源: Laya_社区 发布时间: 20190224