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

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

281. 计时器-延迟执行 [ 64%]

... 60; var button = new Sprite(); 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; } function onDecreaseAlpha1(e) { //移除鼠标单击事件 button1.off(Event.CLICK, this, onDecreaseAlph...

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

282. 生成的目录有问题 [ 64%]

...独的文件夹,统一放在了project下 Laya_Aaron • 2017-12-15 18:50 之前的项目出问题了吗 Laya_Aaron • 2017-12-15 18:50 你把那个错误的文件改成项目名试一下 Laya_Aaron • 2017-12-15 18:51 或者发给我 我看看 tuotuo1226 • 2017-12-15 18:59 试过了,没用...

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

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

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

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

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

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

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

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

286. 鼠标交互-双指缩放(多点触控) [ 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_示例 发布时间: 20240930

287. 鼠标交互-修正交互区域 [ 63%]

...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_示例 发布时间: 20240930

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

289. 计时器-延迟执行 [ 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_示例 发布时间: 20240930

290. 分包项目, 加载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