大约有 290 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0046 秒)
...sh使用吗? masterbtn.tag = 0; masterbtn.on(Laya.Event.MOUSE_UP,this,this.onItemMaster); _proto.onItemMaster = function(params){ var btn = params.currentTarget; console.log("----------------------- ",btn.tag);//我赋值是0,但这里调用获取是2?? } 2017-11-20 添加评论 免费...
来源: Laya_社区 发布时间: 20171120
2.3微信截图分享问题 let textur: Laya.Texture = this.cut.drawToTexture(500, 500, 0, 0); this.show.texture = textur此代码可以获得一个组件的纹理。并且可以正常展现到另一个组件上去。 现在有个问题。如果用微信分享怎么搞?微信那边需要...
来源: Laya_社区 发布时间: 20191223
...g 昨晚脑子短路了。睡觉时才想到这样弄。var _NetData = new this.UserModel(); var _NetMessageHead=new this.HeadModel(); _NetMessageHead.set('bMainID', head[0]); _NetMessageHead.set('bAssistantID', head[1]); ...
来源: Laya_社区 发布时间: 20161223
...E_VERSION; Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this,this.beginLoad)); HI, 各位大大。我们在程序入口添加了上述资源版本控制,并release。 抓包发现,通过微信进入游戏没有请求version.json文件(iOS/Android都没请求); 通过微信...
来源: Laya_社区 发布时间: 20180403
...渲染,然后再使用嘛? 我看了官网的例子,发现如果将 this.spBg.visible = false; this.aniFly.visible = false; 这两行代码注释掉,然后点击用cleartestureres进行销毁的时候,curMem是不会改变的,只有将那两个对象设置成false,curMem才会降下...
来源: Laya_社区 发布时间: 20180124
...i constructor() { super(); this.once(Laya.Event.DISPLAY, this, this.onCreate); this.once(Laya.Event.UNDISPLAY, this, this.onDestroy); } /** * 加入场景 */ protected on...
来源: Laya_社区 发布时间: 20181114
... 分享 微博 QZONE 微信 136*****787 赞同来自: 谢谢回复,但是this.tiledMap = new TiledMap(); Typescript会在这个地方崩溃 @Laya_Aaron 2018-09-18 0 0 分享 微博 QZONE 微信 tea 赞同来自: 我也遇到这个问题啦 按官方文档也是错 还没有人回复 2018-12-17 0 0...
来源: Laya_社区 发布时间: 20180918
...the .lh file root type must be Scene,please use other function to load this file.;at api readFile success callback function Error: Scene: the .lh file root type must be Scene,please use other function to load this file. at MyScene.__proto.onAsynLoaded (http://127.0.0.1:59022/game/code....
来源: Laya_社区 发布时间: 20180317
...he.ls"; public LoadScene3D(): Laya.Scene { console.log("screen#DPath = " + this.screen3DPath); let scene: Laya.Scene = Laya.Scene.load(this.screen3DPath); Laya.stage.addChildAt(scene, 0); this.InitCamera(scene); return scene; } 微信小游戏报错 Scene: the .lh file root type must be Scene,please...
来源: Laya_社区 发布时间: 20180323
...动 Laya.Tween.to()? 我看过官方示例,不是旋转 Laya.Tween.to(this.camera.transform.localRotationEuler, { x: _vector3.x, y: _vector3.y, z: _vector3.z + (20 * Math.PI / 180) }, 500); 2017-08-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20170824