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

大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0049 秒)

1261. ProgressBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 49%]

...码设定ProgressBar相关的属性。 **运行示例效果:** ​ ![5](gif/1.gif) ​ (图5)通过代码创建ProgressBar ​ ProgressBar的其他属性也可以通过代码来设置,上述示例演示了如何通过代码创建不同皮肤(样式)的ProgressBar,有兴趣的读者可以自...

来源: Laya2.0_文档 发布时间: 20210715

1262. Animation 使用疑问 [ 49%]

...     this.aniBody.pivot(bound.width / 2, bound.height / 2);         if (direction < 0) {             this.aniBody.scaleX = -1;         } else {             this.aniBody.scaleX = 1;         }     } 每改变一个方向CurMern都爆涨50M这样(我的资源body,weap...

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

1263. list点击label保留一种状态 [ 49%]

...dex){ var dataIndex = data[index]; var label = item.getChildByName('lab'); if(dataIndex.type == false){ label.bgColor = '#f3d9b4'; }else { label.bgColor = 'red'; } } function onSelect(ev,index){ data[index].type = data[index].type ? false : true; record_slide_list.setItem(index,data[index]); } 请...

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

1264. Label属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 49%]

...ei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } Laya.stage.addChild(label); return label; } })(); ```

来源: Laya2.0_文档 发布时间: 20210714

1265. textinput(type=password)手机打开华为安全键盘后,无法关闭(官网的例子) [ 49%]

...           input.y = i * SPACING + Y_OFFSET;               if(i==0){ input.type="password"}           }     }     function createInput(skin)     {         var ti = new TextInput();         ti.skin = skin;         ti.size(300, 50);         ti.siz...

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

1266. 使用layacmd资源版本管理时,与res相同目录的未打包的大图片改怎么处理呢 [ 48%]

...径 */ public static function addVersionPrefix(originURL:String):String { if (manifest && manifest["resource/"+originURL]) return manifest["resource/"+originURL] + "/resource/" + originURL; return originURL; } 我这样修改了下api中的这个方法,发布...

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

1267. 内置骨骼动画 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...画 private play(): void { //每次到下一个动画 this.mCurrIndex++; if (this.mCurrIndex >= this.mArmature.getAnimNum()) { this.mCurrIndex = 0; } this.mArmature.play(this.mCurrIndex, false); } } 运行效果如下 (动图3-1) 具体效果大家可以在LayaAir 2D入门示例中查看。 C...

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

1268. 微信开发者工具出现错误:Laya3D init error must support webGl [ 48%]

...误对应的代码位置是在code.js的Laya.init方法:         if (!Render.isConchNode && !WebGL.enable()){             alert("Laya3D init error,must support webGL!");             return;         } 这个应该是引擎自动生成的代码吧,应该如何...

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

1269. LayaFlash针对资源的加载是同步还是异步? [ 48%]

...程不连贯的不友好体验 ,开发者可以采用LayaFlash提供的IFlash.preSwfAssets方法,通过预加载方式解决这个问题。 package { import flash.display.Loader; import flash.display.LoaderInfo; import flash.display.Sprite; import fash.display.StageAlign; import flash.display.St...

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

1270. 循环添加一组按钮事件无法正常使用 [ 48%]

...           eggHoleHeight = 83;                     if(yy0 == yy1)                     {                         tx = dx + eggLoc[i][0]*eggHoleWidth;                     }                     else           ...

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