大约有 413 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)
Laya_社区(130) Laya3.0_api(69) Laya2.0_api(64) laya_api(59) Laya2.0_文档(46) Laya3.0_文档(26) Laya_示例(12) Laya2.0_示例(7)
... 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
...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
....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
...mboBox.selectHandler = new Handler(this, onSelect, [comboBox]); Laya.stage.addChild(comboBox); return comboBox; } function onSelect(cb) { console.log("选中了: " + cb.selectedLabel); } })(); ```
来源: Laya2.0_文档 发布时间: 20210714
...景 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
...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
...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
...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
...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
...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