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

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

191. iOS wkWebView [ 81%]

...答下啊!     private connect(): void { console.log("connect...."); this.hr = new Laya.HttpRequest(); this.hr.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.hr.once(Laya.Event.ERROR, this, this.onHttpRequest...

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

192. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 81%]

...nd {  //声明一个信息文本 private txtInfo: Text;  constructor() { this.setup(); }  private setup(): void { var gap: number = 10;  //创建一个Sprite充当音效播放按钮 var soundButton: Sprite = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width...

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

193. ☆☆☆☆☆☆☆☆☆☆☆每增加一个 view 都会增加一个 drawcall 吗 ☆☆☆☆☆☆☆☆☆☆☆ [ 80%]

...gs/img_10103.png"; fish.scoreItem.sizeGrid = '0,10,0,10'; var price = this.getFishVal('10001', 3); var length = String(price).length; var w = length * 16 + 15 + 40; fish.scoreItem.width = w; fish.scoreItem.x = fish.getBox().x - fish.scoreItem.width/2; fish.scoreItem.y = fish.getBox().y - fish.s...

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

194. mac下用FB打包发布测试页面,chrome浏览器看不到预期显示文字 [ 80%]

...境有问题?   /LayaAirTest/src/LayaAirTest.as (8):warning:Laya.init This variable is not defined. /LayaAirTest/src/LayaAirTest.as (9):warning:Laya.timer.currTimer This variable is not defined. /LayaAirTest/src/LayaAirTest.as (20):warning:Laya.stage.bgColor This variable is not defined. /LayaAir...

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

195. Sprite optimizeScrollRect = true 似乎有问题 [ 80%]

Sprite optimizeScrollRect = true 似乎有问题 this.initMask = function () { this.mask = new Sprite(); this.mask.width = this.width; this.mask.height = this.height; this.mask.scrollRect = new Rectangle(); this.mask.scrollRect.setTo(0, 0, this.width, this.height); this.mask.optimizeScrollRect = tr...

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

196. Sprite-缓存为静态图像 [ 80%]

....stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } private setup(): void { var textBox: Sprite = new Sprite(); // 随机摆放文本 var text: Text; for (var i: number = 0; i < 1000; i++) { text = new Text(); text.fontSize = 20; text.text = (Math.random() * 10...

来源: Laya_示例 发布时间: 20260106

197. Label属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 80%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF"...

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

198. 使用getChildByName()无法得到子节点对象 [ 80%]

...无法得到子节点对象    page2._list.renderHandler = new Handler(this, onRender);         function onRender(cell,index){             //如果索引不再可索引范围,则终止该函数             if(index &gt; json.length)return;            ...

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

199. 一篇了解所有的LayaAir文本组件(TypeScript-LayaAir基础篇(TS)-文本) [ 80%]

...令,从而优化了渲染效率。 示例代码如下: ```typescript this.text.text="原text文本"; Laya.stage.addChild(this.text); //不优化的写法是:this.text.text="替换的text文本"; this.text.changeText("替换的text文本"); ``` #### 2、尽可能使用对应的文本组件 每...

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

200. 文本-字数限制 [ 80%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; let inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya....

来源: Laya2.0_示例 发布时间: 20260106