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

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

191. list功能改变图片皮肤 [ 72%]

...var q:Number=0;q<130;q++){ var first:Object= new Object(); //first.lbl =Math.floor(Math.random()*3+1) ; if(q == 1) { var cc:*=_tempFruitUi.panel; var dd:List=aa.getChildByName("firstList") as List; var itemB:Box = dd.getCell(0); var specificPic:Image = itemB.getChildByName("img1") as Image; speci...

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

192. UI-ProgressBar [ 72%]

...s.progressBar.value += 0.05; } onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } } new UI_ProgressBar();module laya { import Stage = Laya.Stage; import ProgressBar = Laya.ProgressBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ProgressBar { ...

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

193. 文字设置自动大小和字体后显示切边。 [ 72%]

...: class TextRender getFontSizeInfo 函数,最后部分    var xoff:int = Math.max( orix - pixelBBX[0], 0);    var yoff:int = Math.max( oriy - pixelBBX[1], 0);    var bbxw:int = pixelBBX[2] - pixelBBX[0];    var bbxh:int = pixelBBX[3] - pixelBBX[1]+1; 原来没有+1,都可以调整调整 20...

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

194. Laya中的模型视图矩阵在哪个类里可以找到啊 modelviewMatrix [ 72%]

...链接 提交 1 个回复 cuixueying 赞同来自: 矩阵相关你可以在Math包下找到!譬如:import laya.d3.math.Matrix4x4; 2017-02-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 XiaozeRain 相关问题 看了其他引擎才...

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

195. laya.maths.Matrix [ 72%]

...es | Index | Frames No Frames MatrixProperties | Methods Packagelaya.mathsClasspublic class MatrixInheritanceMatrix Object Matrix 类表示一个转换矩阵,它确定如何将点从一个坐标空间映射到另一个坐标空间。 您可以对一个显示对象执行不同的图形转换...

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

196. laya.d3.math.Vector4 [ 72%]

...| Index | Frames No Frames Vector4Properties | Methods Packagelaya.d3.mathClasspublic class Vector4InheritanceVector4 ObjectImplements laya.d3.core.IClone Vector4 类用于创建四维向量。 Public Properties PropertyDefined By  elements : *四维向量元素数组Vector4  ONE : Vector4...

来源: laya_api 发布时间: 20170929

197. 鼠标交互-自定义事件 [ 72%]

...ICK, this, onSpriteClick); } function onSpriteClick(e) { var randomAngle = Math.random() * 180; //发送自定义事件 sp.event(ROTATE, [randomAngle]); } // 触发自定义的rotate事件 function onRotate(newAngle) { Tween.to(sp, { "rotation": newAngle }, 1000, Ease.elasticOut); } })();module laya...

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

198. 请教玩一玩横屏问题 [ 72%]

...== SCREEN_HORIZONTAL) {                     mat.rotate(Math.PI / 2);                     mat.translate(screenHeight / pixelRatio, 0);                     canvasDegree = 90;                 } else {              ...

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

199. Ease.elasticOut如何自定义参数,直接设置的话会变成number [ 72%]

... (c < 0 && a < -c)) { a = c; s = p / 4; } else s = p / PI2 * Math.asin(c / a); return (a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * PI2 / p) + c + b); }可以按照原来的函数仿写自己想要的 2018-01-04 0 2 分享 微博 QZONE 微信 he853066732 赞同来自:   2018-04-0...

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

200. 3D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 72%]

...; i < this._colorNums; i++) { let offset = i * 4; colorBuffer[offset] = Math.random(); colorBuffer[offset + 1] = Math.random(); colorBuffer[offset + 2] = Math.random(); colorBuffer[offset + 3] = 1; } //设置uniformbuffer this.batchMat.setBuffer("colormap", colorBuffer); } //随机生成_spriteNu...

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