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

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

361. laya.ui.List [ 51%]

... Inherited Public Methods Show Inherited Public Methods MethodDefined By addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node  addItem(souce:Object):void 添...

来源: laya_api 发布时间: 20170929

362. 进度条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 51%]

...gressBar.changeHandler = new Laya.Handler(this, this.onChange); this.owner.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 += ...

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

363. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 50%]

....graphics.drawRect(0, 0, 300, 300, "#ffcccc"); //添加到stage Laya.stage.addChild(bgPage); //实例化MonkeyPageUI页面 var monkeyPage: ui.MonkeyPageUI = new ui.MonkeyPageUI(); //为了能够清楚的看到这个页面所在的位置,在此设置设置一个背景色 monkeyPage.graphics.drawRec...

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

364. ComboBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 50%]

...mboBox.selectHandler = new Handler(this, onSelect, [comboBox]); Laya.stage.addChild(comboBox); return comboBox; } function onSelect(cb) { console.log("选中了: " + cb.selectedLabel); } })(); ```

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

365. 从Unity中编辑并导出摄像机(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 50%]

...景 var scene:Scene3D = Laya.loader.getRes("monkey/monkey.ls"); Laya.stage.addChild(scene); //从场景中获取摄像机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //后续对摄像机的逻辑操作....... } } } ``` ​ 在Untiy中,摄像机默认名为“Main Camera”...

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

366. new Laya.Templet() 时,说这不是一个constructor [ 50%]

...ew Animation(); this.aniFighter.loadAtlas(this.strAniConfPath); Laya.stage.addChild(this.aniFighter); this.aniFighter.interval = 100;//30;//设置播放间隔30毫秒 this.aniFighter.index = 1;//当前播放索引 this.aniFighter.play();//播放图集动画 this.aniFighter.loop = false; //获取动...

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

367. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 50%]

...x.selectHandler = new Handler(this, this.onSelect, [comboBox]); Laya.stage.addChild(comboBox); return comboBox; } private onSelect(cb: ComboBox): void { console.log("选中了: " + cb.selectedLabel); } } } new laya.UI_ComboBox(); ```

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

368. 模拟石头下落过程不明抖动 [ 49%]

...se.linearOut,Laya.Handler.create(this,this.removeball,[ball])); Laya.stage.addChild( ball ); } } public removeball( ball:Laya.Sprite ){ Laya.stage.removeChild(ball); // console.log("rmove ball") } public getObj():Laya.Sprite { for( let i:number = 0 ; i < this.balls.length;i++ ){ if( !this.balls[i...

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

369. 绘制能力 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...hics.drawRect(20, 20, 100, 50, "#ffff00", "#00ff00", 5, false); this.owner.addChild(sp); 示例中的 20,20 是矩形起始点坐标,100是向右的宽度,如果是负数则是向左的宽度。50是向下的高度,如果是负数则是向上的高度。 运行效果: (图2-3) 2.3 用d...

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

370. laya.display.Input_API3.0 [ 49%]

...ordWrap x y zOrder Methods _initialize _processActive _setHeight _setWidth addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater changeText clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce ...

来源: Laya3.0_api 发布时间: 20231115