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

大约有 72 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0029 秒)

51. 按钮点击的位置发生偏移 [ 55%]

...位 可以通过 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

52. Laya2.0 刚体获取body时,场景中所有刚体紊乱 [ 55%]

...               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

53. image.drawToCanvas方法获取的一直是空的png [ 54%]

...得好麻烦啊 ,请问一下有别的方法吗 源代码中Handler中的setTo()方法 如何检测Animation动画播放完毕后去执行方法? 節點的destroy方法參數默認為true時是否會遞歸調用子對象的destroy方法? onOpen方法是位于哪个类下面? 问题状态 最...

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

54. Sprite optimizeScrollRect = true 似乎有问题 [ 53%]

... 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

55. 微信小游戏开放域缩放问题 [ 53%]

...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

56. Uint8Array的像素数据在ios中无法改变图片纹理,安卓正常 [ 52%]

...aya.Texture2D(width, height, 1); tex2d.setPixels(data); this.imgAr.texture.setTo(tex2d); } 附件 : --> demo.zip 2021-01-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 157*****593 赞同来自: 经排查发现...

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

57. 3D 鼠标检测 错乱 [ 51%]

...; 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

58. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 51%]

...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

59. 事件管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 51%]

...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

60. setBounds()后无法碰撞 [ 50%]

...到,并且当我想变大变小点击框时,只需要改变rectangle2.setTo(新的长的一半,新的宽的一半,新的高,新的宽);就能一直保持点击不偏移,目前无论改变sp2的位置,或是rectangle2的大小,setBounds后都出现了严重的偏移? daohu • 2...

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