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

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

21. 鼠标交互-滑动 [ 68%]

...st h = 30; button = new Sprite(); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.pivot(w / 2, h / 2); //设置宽高(要接收鼠标事件必须设置宽高,否则不会被命中) button.size(w, h); button.x = (Laya.stage.width - TrackLength) / 2; button.y = Laya.stage.height / 2; but...

来源: Laya_示例 发布时间: 20251130

22. 鼠标交互-滑动 [ 67%]

... this.button = new Sprite(); this.button.graphics.drawRect(0, 0, w, h, "#FF7F50"); this.button.pivot(w / 2, h / 2); //设置宽高(要接收鼠标事件必须设置宽高,否则不会被命中) this.button.size(w, h); this.button.x = (Laya.stage.width - TrackLength) / 2; this.button.y = Laya.s...

来源: Laya2.0_示例 发布时间: 20251130

23. 输入设备-贪吃蛇(重力感应) [ 65%]

...is.graphics.drawRect(-height / 2, -height / 2, width + height, height, "#FF7F50"); } // 获取关节另一头位置 Segment.prototype.getPinPosition = function() { var radian = this.rotation * Math.PI / 180; var tx = this.x + Math.cos(radian) * this.width; var ty = this.y + Math.sin(radian) * this.w...

来源: Laya_示例 发布时间: 20251130

24. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 65%]

... text.fontSize = 18; text.pos(aar[i][0]+10,aar[i][1]+66); text.color = "#FF7F00"; text.zOrder = 1; this.addChild(text); var text = new Text(); text.text ="100123"; text.fontSize = 18; text.pos(aar[i][0]+10,aar[i][1]+85); text.color = "#FF7F00"; text.zOrder = 1; this.addChild(text); var bgSprite = ne...

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

25. 输入设备-贪吃蛇(重力感应) [ 65%]

...s.height / 2, -this.height / 2, this.width + this.height, this.height, "#FF7F50"); } // 获取关节另一头位置 getPinPosition() { const Point = Laya.Point; let radian = this.rotation * Math.PI / 180; let tx = this.x + Math.cos(radian) * this.width; let ty = this.y + Math.sin(radian) * this.widt...

来源: Laya2.0_示例 发布时间: 20251130

26. 请教各位前辈们,AS的一些API好像layabox没有,求解决方法或者思路,比如 Point 的interpolate方法 具体问题内详 [ 64%]

..., p1.y);             target.graphics.drawPoly(p1.x, p1.y,path,"#FF7F50");                                       _mask.graphics.drawTexture(texture,0,0);                          var path1:Array = ;             path1.push(p2.x, p2.y);  ...

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

27. 2.6.0运行报错 [ 62%]

...提示了如下问题:(上传错误DEMO工程  testBug.zip)  .WebGL-0x7f899a033200]RENDER WARNING: there is no texture bound to the unit 3          附件 : --> testBug.zip 2020-03-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

28. 3d模型IOS下加载不出来,安卓下正常 [ 61%]

...传了几失败了,请从以下地址下载     https://c-t.work/s/7f1405e72bca43 附件 : --> 附件下载地址.zip 2020-01-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 这个...

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

29. 绘制平明问题 [ 61%]

...s.graphics.drawPoly(Laya.stage.width / 2, Laya.stage.height / 2, path, "#FF7F50"); 这个可以通过一些点来绘制一个平面图形 2017-11-03 0 1 分享 微博 QZONE 微信 i_like_these 赞同来自: 请问下 这个绘制是2d的吗 还是3D的 能绘制3D平面吗?  2017-11-06 0 0 分享...

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

30. socket大型项目回调 [ 61%]

...t; } while (id != 0); // 5.x // var len:Array = []; // len.push(id & 0x7f); // id >>= 7; // while(id > 0) // { // len.push(id & 0x7f | 0x80); // id >>= 7; // } // // for (var i:int = len.length - 1; i >= 0; i--) // { // buffer.writeByte(len[i]); // } } if (rot) { if (typeof...

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