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

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

171. laya.ui.Panel [ 56%]

...被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node toolTip : * 鼠标悬停提示。 可以赋值为文本 String 或函数 Handler ,用来实现自定义样式的鼠标提示和参数携带等。 Component top : Nu...

来源: laya_api 发布时间: 20170929

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

...ance.on(Event.CHANGE, this, this.monitorAccelerator); // 游戏循环 Laya.timer.frameLoop(1, this, this.animate); // 食物生产 Laya.timer.loop(3000, this, this.produceFood); // 游戏开始时有一个食物 this.produceFood(); } initSnake() { const Point = Laya.Point; for (let i = 0; i 0) { let...

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

173. 射线检测-放置物体 [ 56%]

...(Laya.MeshCollider); meshCollider.mesh = plane.meshFilter.sharedMesh; Laya.timer.frameLoop(1, this, checkHit); var ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _outHitInfo = new Laya.RaycastHit(); function checkHit() { //从屏幕空...

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

174. laya.display.AnimationBase [ 56%]

...性。之后可存入对象池,方便对象复用。 AnimationBase clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Node customRender(context:Context, x:Numbe...

来源: Laya2.0_api 发布时间: 20190513

175. js进度,进度,js场景进度效果 [ 56%]

...去加载进度 - 由于进度太快无法看到一个虚假的效果 Laya.timer.once(i * 100, this, function() { this.Progress.schedule.value = num; this.Progress.percentage.text = (num * 100).toFixed() + '%'; if (num >= 1) { this.run(); } }); }; p.run = function() { Laya.timer.once(300, this, f...

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

176. 关于游戏暂停问题 [ 56%]

... 2018-07-20 0 1 分享 微博 QZONE 微信 wu语 赞同来自: 试试 Laya.timer.scale = 0   2018-07-23 0 0 分享 微博 QZONE 微信 智力猫 赞同来自: 你只停下了laya的渲染,matter的物理计算还在继续 你要查一下matter的文档 如何暂停运算 2018-07-23 0 0 分享 ...

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

177. laya.display.Sprite [ 56%]

...显示在屏幕之前调用,一般用于延迟计算数据。 Node clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Node  customRender(context:Context, x:Num...

来源: Laya2.0_api 发布时间: 20190513

178. laya.ui.Component [ 56%]

...被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node  toolTip : * 鼠标悬停提示。 可以赋值为文本 String 或函数 Handler ,用来实现自定义样式的鼠标提示和参数携带等。 Component  top ...

来源: laya_api 发布时间: 20170929

179. laya.ani.swf.MovieClip [ 56%]

...显示在屏幕之前调用,一般用于延迟计算数据。 Node clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Node customRender(context:Context, x:Numbe...

来源: Laya2.0_api 发布时间: 20190513

180. laya.ui.Tree [ 56%]

...被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node toolTip : * 鼠标悬停提示。 可以赋值为文本 String 或函数 Handler ,用来实现自定义样式的鼠标提示和参数携带等。 Component top : Nu...

来源: laya_api 发布时间: 20170929