大约有 813 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)
Laya_社区(659) Laya2.0_文档(61) Laya_示例(34) Laya2.0_示例(30) Laya3.0_文档(25) Laya3.0_api(3) Laya2.0_api(1)
...e", "29,59,wolk,true", "70,120,cheer,true", "125,380,dance,true", "393,440,forerake,false", "443,485,backward,true"]; let state: Laya.AnimatorState; console.log("getANi"); for (let i = 0; i < arr.length; i++) { let arrString = arr[i].split(","); // 创建动画动作状态 state = new Laya.Animat...
来源: Laya_社区 发布时间: 20190802
... this._sources=; if (this._stateNum===1){ this._sources.push(img); }else { for (var i=0;i < this._stateNum;i++){ this._sources.push(Texture.createFromTexture(img,0,height *i,width,height)); } } AutoBitmap.setCache(key,this._sources); } if (this._autoSize){ this._bitmap.width=this._width || width;...
来源: Laya_社区 发布时间: 20170516
...} private function onClick(sp:Sprite,panel:Panel):void { trace('Add1000'); for(var i:int=0;i<1000;i++) { var button:Button=new Button('button-4.png'); button.label='button:'+i; sp.addChild(button); button.y=i*60; } sp.graphics.clear(); sp.graphics.drawRect(0,0,500,1000*60,"#FF0000"); sp.size(500,...
来源: Laya_社区 发布时间: 20170601
...compile' is not in your gulpfile [17:22:12] Please check the documentation for proper gulpfile formatting exit:1 附件 : --> 2020-05-09 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Recovery 赞同来...
来源: Laya_社区 发布时间: 20200509
...:好吧....有问题再反馈! q1402907210 • 2017-12-27 15:51 上面的for循环可以加载,下面的单加不可以! Monica • 2017-12-27 15:55 @q1402907210:你没有加载完成事件,所以有可能资源还在加载的时候界面已经实例化了 q1402907210 • 2017-12-27 15:57 @M...
来源: Laya_社区 发布时间: 20171227
...ode.js > code.min.js Parse error at code.js:107395,26 for(var cType of arr) ^ ERROR: Unexpected token name «of», expected punc «;» at JS_Parse_Error.get (eval at <anonymous> (C:\Users\fp005\AppData\Roaming\n pm\node_modules\...
来源: Laya_社区 发布时间: 20180411
...同材质:采用一张大的纹理贴图,采用standardMaterial下TransformUV的offset来进行uv偏移,但这样修改了模型的材质, 多个动态物体材质不同,无法进行动态合并。 2 .不同模型,相同材质:采用一张大的纹理贴图,美术建模时,面...
来源: Laya_社区 发布时间: 20170311
...Hierarchy(arr, fromSetter); else this._inActiveHierarchy(arr, fromSetter); for (let i = 0, n = arr.length; i < n; i++) { let comp = arr[i]; comp.owner && comp._setActive(active); } arr.length = 0; } 无名玩家X • 2023-10-10 20:22 呃...也不用反复强调你们没问题... 感谢大...
来源: Laya_社区 发布时间: 20231007
...Count:int = 0; var arr:Array = tex.getPixels(0, 0, tex.width, tex.height); for(var i:int = 0; i < arr.length; i++) { if(arr[i] > 0) { pixelCount++; } } return pixelCount; } } }[/i] 2018-03-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20180319
...建的模拟数据,模拟树状列表数据,拼接列表的数据源 for (let i: number = 0; i < 5; i++) { //拼接目录数据结构(item标签这里可以自己定义标签名,用什么开头就用什么结束,但是title这里,一定要对应列表渲染单元的label文本节点name...
来源: Laya3.0_文档 发布时间: 20230828