大约有 427 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
...r asset:Image = assets[i]; //查看log,清理前资源一直在内存中 console.log(Laya.loader.getRes(asset)); //调用清理方法 Laya.loader.clearRes(asset); //查看log,清理后,资源被卸载 console.log(Laya.loader.getRes(asset)); } } 2017-10-19 0 0 分享 微博 QZONE 微信 为什...
来源: Laya_社区 发布时间: 20171019
...這樣: Vector3 {elements: Float32Array[3]} 改成這樣: console.log( camera.transform.position.x ); console.log( camera.transform.position.y ); console.log( camera.transform.position.z ); 另外;你的 position 打錯,不是 postion 是 position。 2017-08-08 2 0 分享...
来源: Laya_社区 发布时间: 20170808
...eNames[i]; let curMem: number = Laya.Stat.currentMemorySize// >> 20; console.log("curM:", curMem); path = bigao.Utils.StringTool.formatString(ResUIModuleManager.moduleResPath, muduleName); bigao.control.SkillControl.instance._skillView = null; Laya.loader.clearRes(path, true); // 为什么这...
来源: Laya_社区 发布时间: 20170905
...tr = new String("大家好,这是websocket通信!"); console.log("str.length*2:" + str.length*2); var b = new ArrayBuffer(20 + str.length*2); var dv = new DataView(b, 0); dv.setUint16(0, str.length*2, false); ...
来源: Laya_社区 发布时间: 20170628
...// 程序入口 class GameMain{ constructor() { Laya.init(600,400, WebGL); console.log("Before In One, Time = " + Date.now()); Laya.timer.once(1,this,this.One) console.log("After In One, Time = " + Date.now()); } One():void{ console.log("In One, Time = " + Date.now()); } } new GameMain(); 控制...
来源: Laya_社区 发布时间: 20190827
...wake不同的是即使节点未激活onAdded也会调用 onAdded(): void { console.log("Game onAdded"); } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { console.log("Game onAwake"); } //组件被启用后执行,比如节点...
来源: Laya3.0_文档 发布时间: 20251010
...AssetsLoading)); } ModelManager.prototype.onCreateComplete = function () { console.log("onCreateComplete"); var pipe = Laya.loader.getRes("res/Pipe/Pipe/a.lh"); console.log("pipe", pipe); } ModelManager.prototype.onAssetsLoading = function (progress) { console.log("progress = ",progress); } 打印...
来源: Laya_社区 发布时间: 20180514
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 大量sprite如何优化性能 请教下微信小游戏的内存和数据缓存? 1.7.20beta有bug,帧属性面板打不开 laya如何重写console.log 打...
来源: Laya_社区 发布时间: 20241015
...ner.name==="end"){ // this.owner.parent.removeSelf(); //删除自身场景 console.log(this.owner.parent) console.log(this.owner.parent.parent); //创建胜利的UI界面 let victoryScene=new VictoryScene(); Laya.stage.addChild(victoryScene); this.isDelete=true; // console.log(Scene3DControl.Ga...
来源: Laya_社区 发布时间: 20190903
....Sprite3D.load(url); this.m_Effect.on(Laya.Event.PLAYED, this, function(){ console.log("PLAYED callback!!"); }) this.m_Effect.on(Laya.Event.PAUSED, this, function(){ console.log("PAUSED callback!!"); }) this.m_Effect.on(Laya.Event.COMPLETE, this, function(){ console.log("COM...
来源: Laya_社区 发布时间: 20170512