大约有 238 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0047 秒)
...nchange = function(e):void { if(file.files.length>0) { fileReader.readAsDataURL(file.files[0]); } } var _this...
来源: Laya_社区 发布时间: 20170706
...址数组) * @param aniName 动作的名称,用于生成url * @param length 动画最后一帧的索引值, */ private function aniUrls(aniName:String,length:int):Array { var urls:Array=[]; for(var i:int=0;i(图6) 我们继续沿用之前的示例,在onLoaded方法中添加play()。 onLo...
来源: Laya2.0_文档 发布时间: 20210715
...w-this.fontSize-this.horizontalSpace, 0); for (let i = 0; i < this.text.length; i++) { const element = this.text.charAt(i); var _x = xAction(j); var _y = yAction(printNumber); this.sprite.graphics.fillText(element, _x, _y, fonts, this.color, "left"); if (yAction(printNumber + 1) > h) { j++; pr...
来源: Laya_社区 发布时间: 20191103
...前物品列表里面是否有 有的话 就从里面拿 if(this.itemList.length > 0){ item = this.itemList.shift(); item.visible = true; }else{ //对象池中拿Item var item = Pool.getItemByClass("item",Item); } //是否有特殊物品 如果有 我们就生成特殊物品 if(randNum > 0.95 ...
来源: Laya_社区 发布时间: 20160803
...子节点的数量? 无法对载入的材质操作。sharedMaterials的length为0 laya 2.0 bug onEnable 分离模式节点没有创建 加载.ls场景文件,销毁场景,再加载同一场景,想恢复初始状态,结果报错【附Demo】 Laya解析XML中,XML元素节点的属性值如...
来源: Laya_社区 发布时间: 20220224
...n; playState._normalizedPlayTime=1.0; if (scripts){ for (var i=0,n=scripts.length;i < n;i++) scripts[i].onStateExit(); } return; } 2019-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 bpmf_d 赞同来自: ...
来源: Laya_社区 发布时间: 20190112
...handler) { var keyTarget = handler.key; for (var i = 0, n = this._handlers.length; i < n; i++) { var handler = this._handlers; if (handler.caller === caller && handler.key === keyTarget) { this._map[handler.key] = null; handler.key = 0; handler.clear(); } } } } [/i] 2020-08-19 添加评...
来源: Laya_社区 发布时间: 20200819
...就是这里: laya.core.js的7430行 if (this._pos_+2 > this._length)throw "getUint16 error - Out of bounds"; 但是,不使用预加载,就不报错,只是不知道什么时候真的加载完成,那个_template不再为null,我就可以调用play了。 怎么解决? 我...
来源: Laya_社区 发布时间: 20180622
...rogress), otherHandler()]).then(res => { let nextScene = res[0] if (res.length > 1) param = .concat((param || ), [res[1]]) nextScene.open(closeOther, param) if (complete) complete.runWith(nextScene) // 重新设置loadingPage 并隐藏 Laya.Scene.setLoadingPage(this._loadScene) Laya.Scene.hide...
来源: Laya_社区 发布时间: 20181124
...ty = 1); (cache === void 0) && (cache = true); var itemCount = arr.length; var loadedCount = 0; var totalSize = 0; var items = ; var success = true; for (var i = 0; i < itemCount; i++) { var item = arr[i]; if ((typeof item == 'string')) item = {url: item, type: type, size: 1, priority: pr...
来源: Laya_社区 发布时间: 20171226