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

大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0069 秒)

1881. [LayaAir 1.0]怎么给动态添加的组件 添加附加脚本 [ 75%]

...1.0]怎么给动态添加的组件 添加附加脚本 我在代码中用  this.image = new Laya.Image(); 添加的图片组件,怎么给this.image添加附加脚本, 官网的文档上只是介绍了在UI界面把脚本文件直接拖动到组件上,但是用代码动态添加的组件就...

来源: Laya_社区 发布时间: 20181023

1882. 3D模型无法用Tween类吗 [ 75%]

... x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animationDelay);   无法直接设置原因...

来源: Laya_社区 发布时间: 20180112

1883. 这样写的代码,Tween动画里面只有alpha有效果,scalex和scaley没有变化,怎么回事啊? [ 75%]

...votX = sprite.width * 0.5; sprite.pivotY = sprite.height * 0.5; sprite.x = this.width * 0.5; sprite.y = this.height * 0.5; this.addChild(sprite);  Laya.Tween.to(sprite, {scaleX:1.5, scaleY:1.5, alpha:0}, 5000); 2018-07-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

来源: Laya_社区 发布时间: 20180708

1884. HttpRequest在网页上和APP上表现不一致 [ 75%]

...let url = "http://10.1.1.123:9090/pgame/s ... 3B%3B Laya.timer.loop(30000, this, ()=>{     let hr = new Laya.HttpRequest();     hr.http.timeout = 3000;     hr.http.ontimeout = function(){console.log("http timeout test: timeout")};     hr.once(Laya.Event.COMPLETE, this, ()=>{console.log...

来源: Laya_社区 发布时间: 20171016

1885. [LayaAirIDE3]时间轴动画调了材质引用类型的属性,调用play()接口切状态的时候调用_revertDefaultKeyframeNodes报材质属性空 [ 75%]

...      var fullPath = node.fullPath;         var keyframeNodeOwner = this._keyframeNodeOwnerMap[fullPath];         let mat = false;         if (keyframeNodeOwner) {             keyframeNodeOwner.referenceCount++;             clipOwners[nodeIndex] = keyframeNodeOwner;     ...

来源: Laya_社区 发布时间: 20240517

1886. Uncaught Error: Laya3D:unknown mesh version [ 75%]

...reate("LayaScene_yuanwenj2/Conventional/yuanwenj2.ls", Laya.Handler.create(this, function() {             console.log("sssssssssssss");         })); 或者使用 Laya.Scene3D.load('LayaScene_yuanwenj2/Conventional/yuanwenj2.ls',Laya.Handler.create(this,this.onComplete都会报这...

来源: Laya_社区 发布时间: 20190618

1887. laya2.2.0发布layanative(安卓),运行后报错 [ 75%]

...报错 laya2.2.0发布layanative(安卓),运行后报错    TypeError: this._nativeObj.addGlobalValueDefine is not a function             return this._nativeObj.addGlobalValueDefine(modifyType, type, size, defaultData);                                    ^^          ...

来源: Laya_社区 发布时间: 20190819

1888. 请问laya2.0的子页面嵌套,var变量如何引用 [ 75%]

...那么我在b的runtime脚本里,为什么不能像1.0版本那样,用this.aview就可以使用了呢?laya 2.0中怎么才可以呢? 2018-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞...

来源: Laya_社区 发布时间: 20180926

1889. 区块地图-带动画的地图 [ 75%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMap(); } private createMap(): void { this.tiledMap = new TiledMap(); this.tiledMap.createMap("../../res/tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } }...

来源: Laya_示例 发布时间: 20251219

1890. 请问socket如何发送protobuf编码后的数据? [ 75%]

...yte.BIG_ENDIAN; // 大端模式的数据 socket在new的时候我设置了 this.socket.endian = Laya.Socket.BIG_ENDIAN; pkg.writeUint16(buffer.length + 2); // 我自己定义的协议,前两个字节存储整个数据的长度 pkg.writeUint16(this._protoIDs[name]); // 再两个字节存放我要...

来源: Laya_社区 发布时间: 20171018