大约有 72 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0029 秒)
...位 可以通过 var target=document.getElementById('div-id'); this._point.setTo((e.pageX || e.clientX)-target.offsetLeft,( e.pageY || e.clientY)-target.offsetTop); 2021-05-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 CCQ 相关问...
来源: Laya_社区 发布时间: 20200825
... var p:Point = value.localToGlobal(Point.TEMP.setTo(0, 0)); world.ShiftOrigin({x: p.x / PIXEL_RATIO, y: p.y / PIXEL_RATIO}); } } 2018-11-23 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回...
来源: Laya_社区 发布时间: 20181122
...得好麻烦啊 ,请问一下有别的方法吗 源代码中Handler中的setTo()方法 如何检测Animation动画播放完毕后去执行方法? 節點的destroy方法參數默認為true時是否會遞歸調用子對象的destroy方法? onOpen方法是位于哪个类下面? 问题状态 最...
来源: Laya_社区 发布时间: 20170704
... this.height; this.mask.scrollRect = new Rectangle(); this.mask.scrollRect.setTo(0, 0, this.width, this.height); this.mask.optimizeScrollRect = true; this.addChild(this.mask); } this.initContent = function () { this.content = new Box(); this.content.width = this.width; this.content.autoSize = true; ...
来源: Laya_社区 发布时间: 20161118
...rm.b,form.c,form.d,form.tx,form.ty]; 开放域 Laya.stage._canvasTransform.setTo(arr[0],arr[1],arr[2],arr[3],arr[4],arr[5]); 2018-07-02 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 185*****307 相关问题 关于微信小游戏关系...
来源: Laya_社区 发布时间: 20180511
...aya.Texture2D(width, height, 1); tex2d.setPixels(data); this.imgAr.texture.setTo(tex2d); } 附件 : --> demo.zip 2021-01-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 157*****593 赞同来自: 经排查发现...
来源: Laya_社区 发布时间: 20210114
...; break ; case "mousemove":; var mousePoint=Input3D._tempPoint; mousePoint.setTo(e.pageX,e.pageY); Laya.stage._canvasTransform.invertTransformPoint(mousePoint); this._mouseTouch.mousePositionX=mousePoint.x; this._mouseTouch.mousePositionY=mousePoint.y; this._mouseTouchRayCast(cameras); break ; case ...
来源: Laya_社区 发布时间: 20200119
...ound.height / 2)) this.cacheTexture = new Laya.Texture() this.cacheTexture.setTo(this.cacheCanvas) } getPixels(){ this.cacheTexture.getPixels(0,0,120,120) } } } Laya.init(400, 640, Laya.WebGL) var app=new Main.MaskDemo() Laya.timer.frameOnce(5, app, ()=>{ app.init() Laya.timer.frameLoop(2, app, a...
来源: Laya_社区 发布时间: 20171211
...Handler.runWith(1); //可以自行调用runWith(),并传入参数1 6,setTo(caller: any, method: Function | null, args: any[] | null, once = false): Handler 设置此对象的指定属性值。 onAwake(): void { console.log("Game Start"); this.Tab.selectHandler = Laya.Handler.create(this,(index...
来源: Laya3.0_文档 发布时间: 20240910
...到,并且当我想变大变小点击框时,只需要改变rectangle2.setTo(新的长的一半,新的宽的一半,新的高,新的宽);就能一直保持点击不偏移,目前无论改变sp2的位置,或是rectangle2的大小,setBounds后都出现了严重的偏移? daohu • 2...
来源: Laya_社区 发布时间: 20161211