• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,081 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0062 秒)

911. prop 识别不到 [ 47%]

...         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

912. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 47%]

...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

913. Web Storage数据存储(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 47%]

...seInt(sessionStorage.pagecount)+1; } else{ sessionStorage.pagecount = 1; } console.log(sessionStorage.pagecount); ``` var sessionStroage = Laya.Browser.window.sessionStroage;这句话的意思就是获取当前页面中的sessionStorage会话对象。 这里的逻辑就是判断当前会话对象是...

来源: Laya2.0_文档 发布时间: 20210715

914. js继承模式 [ 47%]

...(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

915. sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale [ 47%]

...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

916. Web Storage数据存储(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 47%]

...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

917. 官方的LayaAir系列教程-JS-IDE篇-教程06 服务器列表在安卓手机腾讯浏览无法运行 [ 47%]

...如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

918. [LayaAir3]调用renderTexture.getDataAsync且同时勾选camera的hdr或msaa,webgl必报错 [ 47%]

...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

919. 启用版本管理后,Laya.loader.load加载在微信web开发者工具触发不了回调 [ 47%]

...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

920. 创建动画时画布的width和height与 实例化后的ani.size(width, height) 有什么区别 [ 47%]

...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