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

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

61. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 74%]

...ish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入口 Laya.init(600, 400); this.onLoaded() funct...

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

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

...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var AccelerationInfo = Laya.AccelerationInfo; var Accelerator = Laya.Accelerator; var Point = Laya.Point; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; ...

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

63. TypeError: Cannot read property '_byteLength' of null [ 74%]

...打出的APK 报apploader.js:4515 TypeError: addGlobalValueDefine is not a function TypeError: Laya.Browser.window.conch.setFontFaceFromBuffer is not a function Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError...

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

64. Uncaught Error: IBQuadrangle count:16391 must<:16383 [ 74%]

...信息。 Uncaught Error: IBQuadrangle count:16391 must&lt;:16383     at Function.GlUtils.fillIBQuadrangle (laya.webgl.js:2614)     at Function.GlUtils.expandIBQuadrangle (laya.webgl.js:2635)     at WebGLContext2D.__proto.flush (laya.webgl.js:4744)     at RenderContext.__proto.flush (laya.co...

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

65. LAYA IDE 设置语言包路径后卡死 [ 72%]

...把此信息截图给研发商 Uncaught TypeError: text.replace is not a function TypeError: text.replace is not a function     at Input.__proto.parseLines (file:///D:/LayaAirIDE/resources/app/out/vs/layaEditor/h5/laya.js:60001:19)     at Input.__proto.typeset (file:///D:/LayaAirIDE/resources/...

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

66. Laya.Point替代了laya.maths.Point [ 72%]

...了drawToCanvas方法的么?一调用就会提示gl.readPixels is not a function。如果不能用的话,有没有其它替代方案? 类库升级到2.2.0及以上后,没有Laya.superSet和superGet了,有替代方案吗? 问题状态 最新活动: 2022-11-03 14:05 浏览: 11865 关注: 2...

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

67. 使用mask后,只要调用 Laya.Resource.destroyUnusedResources() 就会引起报错 [ 71%]

...k = mask; mask.graphics.drawCircle(0, 0, 100, "0x0000FF"); window.onblur = function() { console.log("onblur....?"); Laya.timer.once(2000, null, function() { Laya.Resource.destroyUnusedResources(); }); } 当触发了释放资源的函数,会报错如下: laya.webgl.js:5713 Uncaught TypeError: Can...

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

68. 提示“AtlasResourceManager:Dispose the inner Atlas。” [ 71%]

...卡滞了 代码类似下面这样 Laya.timer.loop(200, this, showframe); function showframe() {     var url = getimage();     this.sp_video.loadImage(url);     }   2017-08-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

69. Socket连接不上(已解决) [ 71%]

...          private var txt:Text;                  public function LayaDemo()         {             Laya.init(600, 300, WebGL);             txt = new Text();             txt.text = "This is a demo";             txt.color = "#FF0000";     ...

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

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

...var vx:Number = 0, vy:Number = 0; private var targetPosition:Point; public function InputDevice_GluttonousSnake() { Laya.init(Browser.width, Browser.height, WebGL); // 初始化蛇 initSnake(); // 监视加速器状态 Accelerator.instance.on(Event.CHANGE, this, monitorAccelerator); // 游戏循环 ...

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