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

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

61. 怀疑版本控制有bug [ 58%]

...同来自: version.json后面增加随机数 比如"version.json?="+Math.random() 2018-03-15 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 liwenhua 相关问题 LayaAir3D UnityPlugin 使用须知-版本更新-...

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

62. 请问 在LayaAir中怎么样实现随机数 比如两个动画,随机播放其中的一个? [ 58%]

...: 与内容相关的链接 提交 2 个回复 qian 赞同来自: 用Math.random() 2018-01-04 0 1 分享 微博 QZONE 微信 qian 赞同来自: 有问题及时反馈 2018-01-04 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回...

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

63. 对象池的使用 [ 58%]

...an:Image = Pool.getItemByClass("nam", Image); nan.skin = url; nan.x = Math.random() * 600 + 80; nan.y =-60; this.addChild(nan); } private function delRen():void { if(arr.length){ for (var i:uint = 0; i < arr.length; i++ ){ if (arr[i].y > 800){ Pool.recover("nan", Image); } }arr[i].visible = fa...

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

64. 图片显示异常 [ 57%]

...ata) { var data: any[] = []; listData.sort(function () { return 0.5 - Math.random(); });  listData.map((item, index) => { var hotShow: boolean = false; var newShow: boolean = false;  if (index >= 3 && index < 8) { hotShow = true; }  if (index >= 11 && index < 16) { ...

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

65. 【简单跑酷--JS版】---Lv.6 终篇 [ 57%]

...个素材是 32 * 20 拼起来的 this.y = 32 * 6 + 32 * parseInt(8 * Math.random()); if(this.bg == null){ //贴图纹理 this.bgTexture = Laya.loader.getRes("res/floor.png"); this.bg = new laya.display.Sprite(); this.bg.graphics.clear(); this.addChild(this.bg); //因为上面的图片是截取的 ...

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

66. 给图片节点添加新创建的图片,会报这个错:node._setParent is not a function [ 56%]

... iRows = 1; iRows < this.intRows; iRows++) { let iNum = Math.round(Math.random() * this.intMaxLove); let imgSrc = "comp/heart"+iNum+".png"; let imgLove = new Image(imgSrc); console.log("imgLove ==="+imgLove); console.log("imgSrc === "+ imgSrc); //imgLove.pos(iRows*this._x + 120 , iColumns*this._y...

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

67. 两个Laya项目编译完的js之间怎么跳转? [ 55%]

...Browser.createElement("script"); var jurl:String = "Main.js?" + "r" + Math.random(); script.src = jurl; Browser.document.body.appendChild(script); 我采用这种方式不成功! 2018-01-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

68. [LayaNative 2.0]请问android单机包怎么热更新的 [ 55%]

... = (yield asyncs.downloadSync(urlpath + 'update/assetsid.txt?rand=' + Math.random() * Date.now(), false, null)); console.log("assetsid old:" + curassets + " new:" + assetsidStr);第一句是从哪里获取netssetsid资源。这里我运行之后 Downloaded http://127.0.0.1/laya/update/a ... 0.0.1 s=...

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

69. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 54%]

... window.onclick = function() { // Fill the buffer with white noise; //just random values between -1.0 and 1.0 for (var channel = 0; channel < channels; channel++) { // This gives us the actual ArrayBuffer that contains the data var nowBuffering = myArrayBuffer.getChannelData(channel); for (var i = 0...

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

70. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

... window.onclick = function() { // Fill the buffer with white noise; //just random values between -1.0 and 1.0 for (var channel = 0; channel &lt; channels; channel++) { // This gives us the actual ArrayBuffer that contains the data var nowBuffering = myArrayBuffer.getChannelData(channel); for (var i ...

来源: Laya3.0_文档 发布时间: 20251010