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

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

291. startDrag问题,提示参数和错误检查不一致,且惯性阻尼无效 [ 64%]

...和错误检查不一致,且惯性阻尼无效 startDrag(dragRegion,true,50,200,null,true,0.2)  有惯性,但是无阻尼  无阻尼! 附件 : --> LayaProject.rar 2023-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

292. LayaAir开发笔记(1)五十音图连连看 [ 64%]

....Text(); title.text = g_game_title; title.font = "Arial"; title.fontSize = 50; title.stroke = 2; title.strokeColor = "Black"; title.pos(g_stat_width / 2 - title.width / 2, 40); Laya.stage.addChild(title); // 设定版权信息 var copyright = new laya.display.Text(); copyright.text = "Copyright © 2...

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

293. 使用StaticBatchManager,显存无法释放 [ 64%]

... 0 2 分享 微博 QZONE 微信 EagleNight 赞同来自: 可以看到调为50的对比数据,显存那一项在增长,麻烦再看一下,非常感谢 2019-06-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起...

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

294. 鼠标交互-双指缩放(多点触控) [ 64%]

... Laya.stage.addChild(this.sp); this.sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); this.sp.size(w, h); this.sp.pivot(w / 2, h / 2); this.sp.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.sp.on(Event.MOUSE_DOWN, this, this.onMouseDown); } onMouseDown(e) { const Event = Laya.Event; // 手机上...

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

295. 鼠标交互-修正交互区域 [ 64%]

...ect.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height / 2, "#FF7F50"); //设置名称 coralRect.name = "珊瑚色容器"; coralRect.size(Laya.stage.width, Laya.stage.height / 2); Laya.stage.addChild(coralRect); coralRect.on(Event.MOUSE_DOWN, this, onDown); } function createDeepSkyblueRect(...

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

296. 对staticCache的疑问 [ 63%]

...phics.drawRect(0, 0, 100, 100, "#ffff00"); Laya.stage.addChild(sp); sp.x = 50; trace(sp.x); // 输出50 sp.cacheAs = "bitmap"; sp.staticCache = true; sp.x = 100; trace(sp.x); // 输出100,且编译出来的效果也是在这个位置,说明staticCache = true无效   2017-11-20 0 8 分享 微博...

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

297. 计时器-延迟执行 [ 63%]

...); Laya.stage.addChild(button); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return button; } onDecreaseAlpha1(e) { const Event = Laya.Event; //移除鼠标单击事件 this.button1.off(Event.CLICK...

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

298. 分包项目, 加载js时报错 [ 63%]

...    var v:View = new View();             v.graphics.drawCircle(50, 50, 100, "#000000");             v.pos(100, 100);             this.addChild(v);         }     } }   然后, 报错就在Box上: Uncaught TypeError: Cannot read property 'Box' of undefined ...

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

299. 在官方3D例子项目上加载了一个自己的预制件,生成微信小游戏,iPhone7Plus真机运行,按住屏幕左边滑动掉帧严重,按住屏幕右边滑动满帧 [ 63%]

...右边不卡呢。Android低端机都不卡 Laya_Aaron • 2019-06-11 17:50 @1558514766用户:原因已经在上面回复中了 Laya_Aaron • 2019-06-11 17:50 IOS小游戏没有Jit编译,所以性能不如安卓 1558514766用户 • 2019-06-12 10:01 这个不能解释iPhone7Plus,触摸屏幕左...

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

300. laya.utils.Stat_API3.0 [ 63%]

...als Static BlitDrawCall BlitDrawCall: object Defined in laya/utils/Stat.ts:50 color color: "white" = "white" Defined in laya/utils/Stat.ts:50 mode mode: "average" = "average" Defined in laya/utils/Stat.ts:50 title title: string = "BlitDrawCall" Defined in laya/utils/Stat.ts:50 units units: "int" = "...

来源: Laya3.0_api 发布时间: 20231115