大约有 1,081 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0062 秒)
... super(); } onAwake() { console.log("场景渲染完成", this.speed); } } IDE中报错: [15:26:34] Working directory changed to E:\LayaAirIDE\resources\app [15:26:35] Using gulpfile E:\myLaya\demo2\.laya\compile.js [15:26:35] St...
来源: Laya_社区 发布时间: 20191227
...lse if(e.keyCode == 50){ // let t = Laya.Loader.getRes(this.AllPng[0]); // console.log(t); } } private onCallBack(){ var mater = new Laya.BlinnPhongMaterial(); //new Laya.UnlitMaterial(); //Laya.BlinnPhongMaterial(); // const x2 = new Uint8Array(data); // let p = new window['PNG'](x2); // let getDat...
来源: Laya_社区 发布时间: 20220815
...seInt(sessionStorage.pagecount)+1; } else{ sessionStorage.pagecount = 1; } console.log(sessionStorage.pagecount); ``` var sessionStroage = Laya.Browser.window.sessionStroage;这句话的意思就是获取当前页面中的sessionStorage会话对象。 这里的逻辑就是判断当前会话对象是...
来源: Laya2.0_文档 发布时间: 20210715
...(this); // this定义.. this.init(); } Class.prototype.init = function() { console.log(this); }; return Class; })(); } var __extends = (this && this.__extends) || function(d, b) { for (var p in b) { (b.hasOwnProperty(p)) && (d[p] = b[p]); } function __() { this.constructor = d; } d.p...
来源: Laya_社区 发布时间: 20170619
...ationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){ console.log("complete"); }),ConstValue.animationDelay); 无法直接设置原因是浅拷贝变量无法同步到原对象中去 2018-01-12 5 6 分享 微博 QZONE 微信 183*****755 赞同来自: 更改完后,必须s...
来源: Laya_社区 发布时间: 20170630
...seInt(sessionStorage.pagecount)+1; } else{ sessionStorage.pagecount = 1; } console.log(sessionStorage.pagecount); } } new LayaSample(); ``` var sessionStorage:any = Laya.Browser.window.sessionStorage;这句话的意思就是获取当前页面中的sessionStorage会话对象。 这里的逻辑就是...
来源: Laya2.0_文档 发布时间: 20210715
...如TBS_Studio)调试看下是否有报错 lixiaodog • 2017-09-20 18:23 console.log(Laya.version);输出1.1.0,然后我把引擎更新到1.7.11bea;输出1.7.11beta,还是无法运行,我使用的是JS版本 lixiaodog • 2017-09-20 18:25 QQ浏览器版本7.8.0.3540,x5内核:037805GPU-SM,...
来源: Laya_社区 发布时间: 20170920
...tance.gl; let errorCode:number = gl.getError(); if(errorCode != 0) { console.log("webgl报错了,错误代码为" + errorCode); } 3 camera勾选hdr或者msaa 运行报错 webgl报错了,错误代码为 1282 不勾选hdr msaa或者在代码里 camera.enableHDR = true或camera.msaa ...
来源: Laya_社区 发布时间: 20250916
...ader.ATLAS}, ] Laya.loader.load(resArray, Handler.create(null, function(){ console.log("回调")})); 这样用Laya.loader.load加载在微信web开发者工具触发不了回调,资源的url都是有资源的, Laya.URL.basePath的路径也是对的 laya sdk 是1.7.17,微信开发者工...
来源: Laya_社区 发布时间: 20180426
...20); this.aniBirdSing.pos(94+0, 259+120); this.aniBirdSing.size(120, 120); console.log(this.aniBirdSing.width, this.aniBirdSing.height); this.aniBirdSing.mouseEnable = true; Laya.stage.addChild(this.aniBirdSing); } 根据这个代码,我认为鼠标点击区域在图片左下区域,但结果是...
来源: Laya_社区 发布时间: 20171026