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

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

921. ProgressBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 54%]

....changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(progressBar); //时间间隔循环,每100毫秒改变一次数据 Laya.timer.loop(100, this, changeValue); } /***时间间隔循环回调,更新进度条***/ private function changeValue():void { //最大为1,...

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

922. layabox能能由xml生成节点 [ 54%]

...gt;'; var xmldom = Laya.Utils.parseXMLFromString(xml).firstChild; root_dom.addChild(xmldom); ``` 我这样写 root_dom下面有节点但是完全没法显示啊 zsytssk • 2016-12-01 14:10 我如何把xml变成laya中能用的节点啊, 有demo吗 cuixueying • 2016-12-03 19:04 你把这个写成...

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

923. 3D场景里面怎么画线条 [ 54%]

...le.log("线段数量:", wayList.length);         this.mainScene.addChild(pl);         for (let i = 1; i < wayList.length; i++) {             pl.addLine(wayList[i - 1], wayList[i], Laya.Color.RED, Laya.Color.RED);         } 2019-11-19 0 2 分享...

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

924. 渲染优化原则(ActionScript-2D进阶篇(AS3)-性能优化) [ 54%]

...`javascript var txt:Text = new Text(); txt.text = "text"; Laya.stage.addChild(txt); //后面只是更新文字内容,使用changeText能提高性能 txt.changeText("text changed."); ``` Text.changeText会直接修改绘图指令中该文本绘制的最后一条指令,这种前面的绘图...

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

925. 创建[HTMLDivElement]时遇到错误(手动实例一次本组件可定位错误) [ 54%]

...写。 this.contentDiv = new Laya.HTMLDivElement(); this.contentT.parent.addChild(this.contentDiv); this.contentDiv.x = this.contentT.x; this.contentDiv.y = this.contentT.y; this.contentDiv.width = this.contentT.width; this.contentDiv.height = this.contentT.height; this.contentDiv.style.width = this...

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

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

...s.progressBar.changeHandler = new Handler(this, this.onChange); Laya.stage.addChild(this.progressBar); Laya.timer.loop(100, this, this.changeValue); } private changeValue(): void { if (this.progressBar.value >= 1) this.progressBar.value = 0; this.progressBar.value += 0.05; } private onChange(value: ...

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

927. Laya下的图片上传示例(完整版) [ 54%]

...<100){ var bgImg = new Laya.Sprite(); bgImg.loadImage(data); Laya.stage.addChild(bgImg) }else{ console.log("图片超标"+width+"--"+height); } }; img.src =data; } }; 2019-01-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

928. LayaAir DebugPanel 调试工具(ActionScript-2D进阶篇(AS3)-调试相关) [ 54%]

...r = "#ffffff"; var Img:Sprite = new Sprite(); //添加到舞台 Laya.stage.addChild(Img); Img.loadImage("res/img/monkey1.png",200); } } } ``` 运行效果如图1所示 ![图1](img/1.png) (图1) ### 2、刷新显示对象节点树 默认状态下,显示对象节点树中只有`DebugInfoLayer`节点...

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

929. Label属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 54%]

...边颜色 label.strokeColor = strokeColor; } //加载到舞台 Laya.stage.addChild(label); return label; } } } ```

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

930. 微信开放数据域加载图片后报错 Cannot read property 'USER_DATA_PATH' of undefined [ 54%]

...g"); img.height = 100; img.width = 100;             Laya.stage.addChild(img); } 附件 : --> 2019-05-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 早。 赞同来自: 更新一下LayaAir的版本...

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