大约有 485 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0052 秒)
Laya_社区(259) Laya_示例(61) Laya3.0_api(39) Laya2.0_文档(33) Laya2.0_api(28) Laya2.0_示例(25) laya_api(21) Laya3.0_文档(19)
...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
...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
...: 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
...链接 提交 1 个回复 cuixueying 赞同来自: 矩阵相关你可以在Math包下找到!譬如:import laya.d3.math.Matrix4x4; 2017-02-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 XiaozeRain 相关问题 看了其他引擎才...
来源: Laya_社区 发布时间: 20170224
...es | Index | Frames No Frames MatrixProperties | Methods Packagelaya.mathsClasspublic class MatrixInheritanceMatrix Object Matrix 类表示一个转换矩阵,它确定如何将点从一个坐标空间映射到另一个坐标空间。 您可以对一个显示对象执行不同的图形转换...
来源: Laya2.0_api 发布时间: 20190513
...| 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
...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
...== SCREEN_HORIZONTAL) { mat.rotate(Math.PI / 2); mat.translate(screenHeight / pixelRatio, 0); canvasDegree = 90; } else { ...
来源: Laya_社区 发布时间: 20180712
... (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
...; 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