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

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

51. 读取大块材质中的图片并图片切割 [ 61%]

...for (var i:int = 5; i > 0; i-- ){     data["item" i] = {index:Math.floor(temp)};     temp = temp/10;    }    trace(this.score);    this.scorebox.dataSource = data;   } 2017-02-21 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 直接使用IDE下提供的Clip组件实现...

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

52. Laya2.0 beta3 Animator 中的 on 事件 怎么没了 [ 61%]

... if (0.6>(heroAni.getCurrentAnimatorPlayState(0)._normalizedTime-Math.floor(heroAni.getCurrentAnimatorPlayState(0)._normalizedTime))>0.5) 根据动画当前播放的百分比进行判断 2018-10-25 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登...

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

53. Laya.loader.create 进度回调函数执行两次 [ 60%]

...anager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); }   输出结果: 0.19186599730944645 0.5251993306427798 1 0.5002049180327869 0.5626793032786885 0.6251536885245902 0.6876280737704918 0.7501024590163934 0.8125768442622952 0.8750512295081967 0.93752...

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

54. Laya.loader.create 进度回调函数执行两次!!! 上次发问题一直没有回复 [ 60%]

...anager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); }   输出结果: 0.19186599730944645 0.5251993306427798 1 0.5002049180327869 0.5626793032786885 0.6251536885245902 0.6876280737704918 0.7501024590163934 0.8125768442622952 0.8750512295081967 0.93752...

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

55. ts加密md5码封装 [ 60%]

..., 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21 ] T(i: number) { return Math.floor(Math.pow(2, 32) * Math.abs(Math.sin(i + 1))); } x_index(i: number) { if (i >= 0 && i <= 15) return i; if (i >= 16 && i <= 31) return (5 * i + 1) % 16; if (i >= 32 && i <= 47) re...

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

56. ProgressBar 代码问题 [ 59%]

...ge(value: number): void {             console.log("进度:" + Math.floor(value * 100) + "%");         } } 2018-05-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: 你要问的...

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

57. 陀螺仪接口无效呢?Gyroscope.instance.on(Event.CHANGE, this, onOrientationChange); 什么原因呢 [ 59%]

...但是提供的方位并非正确方位。"); } addLog("Gyroscope " + Math.floor(info.alpha)); }   2017-10-15 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 你的意思是没有走onOrientationChange函数吗?如果是的话你在Event前边加个Laya.看下 2017-10-16 0 0 ...

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

58. drawToCanvas绘制显示不全 [ 57%]

...     style.height = screen.height + 'px';         style.width = Math.floor(screen.height / Laya.stage.height * Laya.stage.width) + 'px';         document.body.appendChild(this.nativeImg)     }     onEnable() {         Laya.timer.once(1000, this, this.delayShowImg);     }     de...

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

59. 关于缓动函数from的一些问题记录 [ 57%]

...plete"); } function changeColor(text){ console.log("update"); var c = Math.floor(Math.random()*4); console.log(c); switch(c) { case 0:text.color='red';break; case 1:text.color="blue";break; case 2:text.color ='black';break; case 3:text.color = 'green';break; case 4:text.color = "yellow";break; } con...

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

60. ProgressBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 56%]

...value += 0.05; } function onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } })(); ```

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