大约有 831 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0057 秒)
Laya_社区(671) Laya2.0_文档(61) Laya_示例(34) Laya3.0_文档(31) Laya2.0_示例(30) Laya3.0_api(3) Laya2.0_api(1)
...init(550,400,Laya.WebGL); Laya.Stat.show(); var textBox=new Laya.Sprite(); for(var i=0;i (图1) 当我们对文字所在的容器设置为cacheAs之后,如下面的例子所示,性能获得较大的提升,FPS达到到了60帧。 ```typescript //...省略其他代码 var textBox=new Laya.Sp...
来源: Laya2.0_文档 发布时间: 20210714
....astcconfig = Laya.loader.getRes("minastc.config.json"); for(var key in this.astcconfig){ var fileversion = Laya.ResourceVersion.manifest[key]||key; fileversion = fileversion.replace(".png",".ktx").replace(".jpg",".ktx"); ...
来源: Laya_社区 发布时间: 20221013
...滚动 this.container.vScrollBarSkin = ''; this.init(); } private init() { for (var i = 0; i < 10; i++) { var item = new Item(); item.pos(0, i * (item.height + 1)); this.container.addChild(item); } } } 3,加载资源,完成后再加载界面 import WebGL = Laya.WebGL; // 程序入口 class G...
来源: Laya_社区 发布时间: 20180810
...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