大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0069 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...1.0]怎么给动态添加的组件 添加附加脚本 我在代码中用 this.image = new Laya.Image(); 添加的图片组件,怎么给this.image添加附加脚本, 官网的文档上只是介绍了在UI界面把脚本文件直接拖动到组件上,但是用代码动态添加的组件就...
来源: Laya_社区 发布时间: 20181023
... 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
...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
...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
... var fullPath = node.fullPath; var keyframeNodeOwner = this._keyframeNodeOwnerMap[fullPath]; let mat = false; if (keyframeNodeOwner) { keyframeNodeOwner.referenceCount++; clipOwners[nodeIndex] = keyframeNodeOwner; ...
来源: Laya_社区 发布时间: 20240517
...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
...报错 laya2.2.0发布layanative(安卓),运行后报错 TypeError: this._nativeObj.addGlobalValueDefine is not a function return this._nativeObj.addGlobalValueDefine(modifyType, type, size, defaultData); ^^ ...
来源: Laya_社区 发布时间: 20190819
...那么我在b的runtime脚本里,为什么不能像1.0版本那样,用this.aview就可以使用了呢?laya 2.0中怎么才可以呢? 2018-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞...
来源: Laya_社区 发布时间: 20180926
...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
...yte.BIG_ENDIAN; // 大端模式的数据 socket在new的时候我设置了 this.socket.endian = Laya.Socket.BIG_ENDIAN; pkg.writeUint16(buffer.length + 2); // 我自己定义的协议,前两个字节存储整个数据的长度 pkg.writeUint16(this._protoIDs[name]); // 再两个字节存放我要...
来源: Laya_社区 发布时间: 20171018