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

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

71. laya.display.Node_API3.0 [ 71%]

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

72. 移动Sprite时,边缘闪烁 [ 71%]

...缘闪烁 var lastTimestamp = 0; var count = 0; var totale = 0; Laya.timer.frameLoop(1, this, function test() { var deltaTime = new Date().getTime() - lastTimestamp; lastTimestamp = new Date().getTime(); count++; totale += deltaTime; this.x += this.speed_x*deltaTime; this.y += this.speed_y*deltaTime...

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

73. 重发问题: 点击页面会导致setTimeout setInterval 延迟执行 [ 71%]

...该用requestAnimationFrame。 Laya本身带Laya.timer.loop和Laya.timer.frameLoop,前一个基于时间,后一个基于帧。按照楼主的需求,应该基于时间,但正因为loop是基于时间的,所以类似setInterval,虽然不会卡顿,但是会不流畅。所以当时我研...

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

74. CPU优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 71%]

...​ LayaAir提供两种计时器循环来执行代码块。 1. `Laya.timer.frameLoop`执行频率依赖于帧频率,可通过Stat.FPS查看当前帧频。 2. `Laya.timer.loop`执行频率依赖于参数指定时间。 ```javascript Laya.timer.frameLoop(1, this, animateFrameRateBased); Laya.stage...

来源: Laya2.0_文档 发布时间: 20210715

75. 材质-BlinnPhong材质加载 [ 71%]

...rm.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); Laya.timer.frameLoop(1, this, function () { layaMonkey.transform.rotate(this.rotation, false); });class BlinnPhongMaterialLoad { private rotation:Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); constructor() { Laya3D.init(0, 0, true); Laya...

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

76. 二次开发 oc调用js函数 [ 71%]

...间轴动画里创建的多个动画,怎么分别调用?如图 调用frameLoop之后,怎么清除 有没有克隆控件的方法,prefab能否在代码上调用 laya支持批处理调用js压缩吗? 请问laya.net.Loader和laya.net.LoaderManager哪些函数支持网络资源加载,加载什...

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

77. CPU优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 71%]

...器 LayaAir提供两种计时器循环来执行代码块。 1. `Laya.timer.frameLoop`执行频率依赖于帧频率,可通过Stat.FPS查看当前帧频。 1. `Laya.timer.loop`执行频率依赖于参数指定时间。 ```javascript Laya.timer.frameLoop(1, this, animateFrameRateBased); Laya.stage.o...

来源: Laya2.0_文档 发布时间: 20210715

78. 高级应用-闪光 [ 70%]

...aya.Vector3(0, 0, 0.5); var scaleDelta = 0; var scaleValue = 0; Laya.timer.frameLoop(1, this, loop); function loop() { scaleValue = Math.sin(scaleDelta += 0.01); pos1.elements[0] = pos2.elements[0] = scaleValue * 13; pos1.elements[1] = Math.sin(scaleValue * 20) * 2; pos2.elements[1] = Math.sin(scale...

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

79. laya2.3图集含空白裁切后,锚点旋转bug,demo重现 [ 70%]

...2,0);         Laya.stage.addChild(sp3);         Laya.timer.frameLoop(2,null,function()             {                 sp3.rotation = sp3.rotation+10;             }         ); 2019-11-12 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来...

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

80. laya.d3.core.Sprite3D_API3.0 [ 70%]

...bleEvent callLater clearTimer clone 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