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

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

61. 鼠标交互-键盘交互 [ 73%]

...etup(); } setup() { this.listenKeyboard(); this.createLogger(); Laya.timer.frameLoop(1, this, this.keyboardInspector); } listenKeyboard() { const Event = Laya.Event; // 用Set实现更好一些 keyDownList = []; // 添加键盘按下事件,一直按着某按键则会不断触发 Laya.stage.on(Event....

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

62. 其他引擎的Demo-Example_21 [ 73%]

...ight, WebGL); Laya.stage.bgColor = "#3da8bb"; createCanvases(); Laya.timer.frameLoop(1, this, animate); Laya.stage.on('mousedown', this, onMouseDown); Laya.stage.on('mousemove', this, onMouseMove); Laya.stage.on('mouseup', this, onMouseUp); })(); function createCanvases() { var graphicsCanvas = new ...

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

63. 如何在3D旋转中使用缓动 Laya.Tween.to()?官方示例我看过,不是旋转 [ 73%]

... sfsmmc • 2017-08-24 15:18 我之后试了,发现只有在Laya.timer.frameLoop()中设置了position,后面的Laya.Tween.to(_)才能起作用。这是为什么?https://layaair.ldc.layabox.co ... ing03 Laya.timer.frameLoop(1, this, checkHit); function checkHit() { box.transform.position = _posi...

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

64. 游戏restart使用laya.timer.frame时,游戏出现animation播放错误问题 [ 72%]

...错误问题 类似于官网中飞机大战的逻辑,在使用laya.timer.frameloop去restart游戏的时候,被击动画只播放一张图片,但是在载入界面中播放受击动画是成功的 (restart游戏的所有运行全部可以,就是在切换受击的animation的时候,只是...

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

65. 其他引擎的Demo-Example_21 [ 72%]

....stage.bgColor = "#3da8bb"; Stat.show(); this.createCanvases(); Laya.timer.frameLoop(1, this, this.animate); Laya.stage.on('mousedown', this, this.onMouseDown); Laya.stage.on('mousemove', this, this.onMouseMove); Laya.stage.on('mouseup', this, this.onMouseUp); } createCanvases() { const Sprite = Lay...

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

66. 微信小游戏渲染开放域卡顿处理 [ 72%]

...舒服,自己封装的定时器,不想用可直接替换成Laya.timer.frameLoop来替代,请自行修改跟Timer相关代码。 module lie {     /**      * 定时器,可启动、停止及统计已运行时间(单位毫秒),默认启动      */     export class Timer {     ...

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

67. 定时重复执行(基于帧率)。 [ 72%]

...复执行(基于帧率)。 初始化时 设置每帧执函数 Laya.timer.frameLoop(1,this,this.update); 运行一段时间后 update函数不执行了 2018-05-02 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什...

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

68. 网页跳转函数 [ 72%]

...图,怎么防止同时滚动网页? 怎么停止正在运行Laya.timer.frameLoop的回调函数 MOUSE_OVER注册的响应函数,如果鼠标一直在动,多久会执行一次,一帧吗?和frameLoop一样? js调as函数 undifine 问题状态 最新活动: 2018-04-02 12:45 浏览: 2122 ...

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

69. getTimer 函数可以替代函数 [ 72%]

...型?哪些只支持本地资源加载 怎么停止正在运行Laya.timer.frameLoop的回调函数 load 加载完图集 回调函数可以传形参吗? 注册函数里面 事件侦听函数的执行域 的详解 Uncaught Error:此函数id(167),ctype(167)报错? MOUSE_OVER注册的...

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

70. laya.display.Node_API3.0 [ 72%]

...ce bubbleEvent callLater clearTimer contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild r...

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