大约有 427 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
...了centerX 和centerY后,就无法获取到这个Box的坐标了呀? console.log(this.test1.x ) //结果是 0 但console.log 这个对象,可以看到_x _y 的坐标 请问如何获取到这个被布局后的x y坐标呀? 附件 : --> 2019-07-01 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20190701
...txt); } private function onFunc(e:Event):void { var arr:Array = e.touches; console.log("e.touchId="+e.touchId); console.log("arr[0]"+arr[0]); } } } 输出为: 不明白touches属性数组里面存储的什么类型的数据,第二个不明白touches如何使用 求解答 附件 ...
来源: Laya_社区 发布时间: 20170519
...本的使用问题 class ScaleButton { constructor() { console.log("加载ScaleButton"); } private _owner: any; public set owner(o: laya.display.Sprite) { this._owner = o; console.log("设置owner"); } public get owner(): laya.d...
来源: Laya_社区 发布时间: 20170601
... 微博 QZONE 微信 sevennqi 赞同来自: 您好, 我能确定, Console里是没有报错的。 然后, 我好像找到规律了, 是我向panel里, 加了子元件后, 才会出现的情况, 请问这方面您遇到过么. 有什么好的建议,从哪方面改进呢...
来源: Laya_社区 发布时间: 20170517
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 http 请求 once 的 回调参数,如何传递和接收? 请问从远程网络获取的json数据,怎么保存在本地内存之中呢或本地保存? ...
来源: Laya_社区 发布时间: 20171214
...Laya.Event) { if (e.keyCode == 65) {//A console.log("释放资源false") Laya.loader.clearRes("res/atlas/comp.json", false); Laya.loader.clearRes("res/atlas/comp.png", false); } if (e.keyCode == ...
来源: Laya_社区 发布时间: 20170317
...rror); this.templet.loadAni("res/spine/goblins/goblins.sk"); } onError() { console.log("parse error"); } parseComplete() { //创建第一个动画 var skeleton0: Laya.Skeleton; //从动画模板创建动画播放对象 skeleton0 = this.templet.buildArmature(0); skeleton0.pos(200, 700); //切换动...
来源: Laya2.0_文档 发布时间: 20210715
...this.ctx.graphics.drawTexture(htmlC, 0, 0,this.ctx.width,this.ctx.height); console.log(htmlC) console.log(htmlC.getPixels(0,0,this.ctx.width,this.ctx.height)) 能搞定图片和texttrue,或者转化Uint8Array了,可是能怎么用啊?怎么转URL,保存到后台啊? 2019-11-24 1 条评论...
来源: Laya_社区 发布时间: 20191124
...tSubPixels画布擦除不掉 this.btn.label = Math.random().toString(); // console.log(Math.random()); let tex:Laya.Texture = Laya.Loader.getRes(this.bUrl); let x:number = this._testStatus == true ? 0:50;//Math.random()>0.5 ? 50 : 0; this._testStatus = !this._testStatus; // let canvasInfo = this....
来源: Laya_社区 发布时间: 20230328
...); sp.emitter.start(); sp.x = 100; sp.y = 100; sp.name = (i++).toString(); console.log(sp.name); Laya.stage.addChild(sp); setTimeout(function () { var emitter = sp.emitter; emitter.stop(); emitter.clear(); sp.stop(); sp.destroy(true); Laya.stage.removeChild(sp); onAssetsLoaded(settings); }, 100); } ...
来源: Laya_社区 发布时间: 20170103