大约有 585 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0047 秒)
Laya_社区(436) Laya2.0_文档(39) Laya_示例(27) Laya3.0_api(24) Laya3.0_文档(22) Laya2.0_示例(21) Laya2.0_api(10) laya_api(6)
...= 0, endIndex = 0x7fffffff) { if (this._children && this._children.length > 0) { var childs = this._children; if (beginIndex === 0 && endIndex >= childs.length - 1) { var arr = childs; this._children = Node.ARRAY_EMPTY; } else { arr = childs.splice(beginIndex, endIndex - beginI...
来源: Laya_社区 发布时间: 20201103
...t.match(/private .*?\(/g); console.log(arr); if(arr){ let len = "private ".length; for(var i=0; i<arr.length; i++){ let str = arr[i]; if(str.indexOf("private static") != -1) continue; if(str.indexOf("private async") != -1) continue; if(str.indexOf("private get") != -1) continue; if(str.indexOf("p...
来源: Laya_社区 发布时间: 20190613
... = "#888"; // 用户什么也没输入则恢复默认状态 if (input.text.length == 0) { this._setPlaceHolder(input); // input.align = "right"; // input.type = "text"; } lable.color = "#888"; break; } } private _checkInput(input: Laya.TextInput) { let sp_icon: Laya.Sprite = new Laya.Sprite(); // ...
来源: Laya_社区 发布时间: 20200410
...ody_03") as MeshSprite3D; if(ms) { trace("length " + ms.meshRender.sharedMaterials.length); } } 输出: length 0 2017-01-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20170101
... function onMouseDown(e) { var touches = e.touches; if (touches && touches.length == 2) { lastDistance = getDistance(touches); Laya.stage.on(Event.MOUSE_MOVE, this, onMouseMove); } } function onMouseMove(e) { var distance = getDistance(e.touches); //判断当前距离与上次距离变化,确定...
来源: Laya_示例 发布时间: 20241118
...毁地图层的代码 var tLayer:MapLayer; for (i = 0; i < _layerArray.length; i++) { tLayer = _layerArray[i]; tLayer.clearAll(); } ........ }然后在MapLayer的clearAll()里面会去销毁子节点GridSprite /** * @private * 清理当前对象 */ public function clearAll():void { ....... var tG...
来源: Laya_社区 发布时间: 20180503
...nts IClone Index Constructors constructor Properties angle emitType enable length radius randomDirection shapeType Accessors angleDEG Methods clone cloneTo generatePositionAndDirection Constructors constructor new ConeShape(): ConeShape Overrides BaseShape.constructor Defined in laya/d3/core/particl...
来源: Laya3.0_api 发布时间: 20231115
...美术资源地址数组) * aniName 动作的名称,用于生成url * length 动画最后一帧的索引值, */ function aniUrls(aniName,length){ var urls = []; for(var i = 0;i<length;i++){ //动画资源路径要和动画图集打包前的资源命名对应起来 urls.push("role/"+aniName+i+"...
来源: Laya2.0_文档 发布时间: 20210715
...上才有 touches 属性 let touches = e.touches; if (touches && touches.length == 2) { lastDistance = this.getDistance(touches); Laya.stage.on(Event.MOUSE_MOVE, this, this.onMouseMove); } } onMouseMove(e) { let distance = this.getDistance(e.touches); //判断当前距离与上次距离变化,确...
来源: Laya2.0_示例 发布时间: 20241118
...et u8 = tex.getData(0, 0, tex.width, tex.height) let u = new Uint8Array(u8.length) let len = u8.length / 4 let i = 0 for (let x = len; x >= 0; x--) { for (let y = 0; y < 4; y++) { u[i * 4 + y] = u8[x * 4 + y] } i++ } u8 = u u = new Uint8Array(u8.length) len = u8.length / s.height let l2 = len ...
来源: Laya_社区 发布时间: 20210911