• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 813 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)

691. 通过AnimatorState为Animator添加多个播放状态islooping属性会被覆盖 [ 46%]

...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

692. 为什么laya的Button渲染逻辑顺序是先渲染,再获取素材切片? [ 46%]

... 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

693. 分享:Panel下动态修改子容器宽高并刷新显示! [ 46%]

...} 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

694. Laya2.6 vscode 编译错误 [ 46%]

...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

695. 游戏资源加载问题! [ 46%]

...:好吧....有问题再反馈! q1402907210 • 2017-12-27 15:51 上面的for循环可以加载,下面的单加不可以! Monica • 2017-12-27 15:55 @q1402907210:你没有加载完成事件,所以有可能资源还在加载的时候界面已经实例化了 q1402907210 • 2017-12-27 15:57 @M...

来源: Laya_社区 发布时间: 20171227

696. 发布项目“是否压缩混淆js(耗时)”的bug [ 46%]

...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

697. 请问一下我一个3d模型,贴图是UV类型的里面好多张图,在代码里面怎么调用其它的贴图 [ 46%]

...同材质:采用一张大的纹理贴图,采用standardMaterial下TransformUV的offset来进行uv偏移,但这样修改了模型的材质, 多个动态物体材质不同,无法进行动态合并。   2 .不同模型,相同材质:采用一张大的纹理贴图,美术建模时,面...

来源: Laya_社区 发布时间: 20170311

698. 看下这个问题是不是Bug [ 46%]

...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

699. 画了一个封闭的曲线,获取鼠标点击处的像素,为何坐标对不上导致拿不到正确位置的Texture? [ 46%]

...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

700. 树状列表组件 · LayaAir3.0文档 · LAYABOX [ 46%]

...建的模拟数据,模拟树状列表数据,拼接列表的数据源 for (let i: number = 0; i < 5; i++) { //拼接目录数据结构(item标签这里可以自己定义标签名,用什么开头就用什么结束,但是title这里,一定要对应列表渲染单元的label文本节点name...

来源: Laya3.0_文档 发布时间: 20230828