大约有 1,491 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0221 秒)
Laya_社区(917) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(72) laya_api(2) Laya2.0_api(2)
....valign="bottom"; this.lbl.padding="0,0,1,0"; this.btn.addChild(this.lbl); } this.btn.name=index.toString(); this.uiCtrl=uiCtrl; this.btn.on("change",()=>{ switch(this.btn.name.trim()){ case "0":{ if(this.btn.selected){ this.btn.skin="resources/ui/目...
来源: Laya_社区 发布时间: 20241014
...var testView:TestView = new TestView(); Laya.stage.addChild(testView); fairygui.UIPackage.addPackage ( "res/Bag" ); Laya.stage.addChild ( fairygui.GRoot.inst.displayObject ); fairygui.GRoot.inst.addChil...
来源: Laya_社区 发布时间: 20180513
...F"; txt.pos(50, 100); Laya.stage.addChild(txt); socket = new Socket(); output = socket.output; ...
来源: Laya_社区 发布时间: 20170209
...ownBar() { PauseDialog.super(this); this.name = 'CountdownBar'; Laya.stage.addChild(this); this.zOrder = 100; this.count = 4; this.countLabel.text = '' + this.count; Laya.timer.loop(1000, this, this.countdown); } Laya.class(countdownBar, "CountdownBar", CountdownUI); return countdownBar; }()); Count...
来源: Laya_社区 发布时间: 20171012
...e(this, function(){ this.scene = Laya.loader.getRes(模型url); Laya.stage.addChild(this.scene); }),null, null, 1, true, "scene1"); 执行后,浏览器报 : laya.core.js:13290 Uncaught TypeError: node._setParent is not a function at Stage.__proto.addChild (laya.core.js:13290) at Main.<anonymo...
来源: Laya_社区 发布时间: 20181208
...阳光。 ```typescript //创建方向光 this.directionLight = this.scene.addChild(new Laya.DirectionLight()); //设置灯光颜色 this.directionLight.color = new Laya.Vector3(1, 1, 1); //设置灯光方向 var mat = this.directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, ...
来源: Laya2.0_文档 发布时间: 20210715
...颜色 改淡一些 //添加方向光 this.Light = this.mainscene.addChild(new Laya.DirectionLight()); this.Light.color = new Laya.Vector3(0.7, 0.7, 0.7); this.Light.direction = new Laya.Vector3(-1.3, -1.5, -1.6); // shadow this.Light.shadow = true; //产生投影的范围(如过小将不...
来源: Laya_社区 发布时间: 20181016
...omponent):void { this.cab.addChild(child); } public function getDevices():Array { return this.cab.getChildren(); } ...
来源: Laya_社区 发布时间: 20180202
...tSize = 13 this.myTest.color = "#ffffff" this.myTest.align = "center" this.addChild(this.myTest) this.timer.loop(10, this, this.timerClick) timerClick() { this.myTest.changeText("改变的文本") } 2019-01-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果...
来源: Laya_社区 发布时间: 20190129
..."]; this.scene = Laya.loader.getRes(sceneUrl) as BattleScene; Laya.stage.addChild(this.scene); this.scene.Init(); } 附件 : --> 2019-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来...
来源: Laya_社区 发布时间: 20190323