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

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

551. [LayaAir3]list.selectHandler [ 75%]

....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

552. 添加fairygui使用fairygui.UIPackage.addPackage ( "res/Bag" )后可以正常跑,发布到微信小游戏出错 [ 75%]

...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

553. Socket连接不上(已解决) [ 75%]

...F";             txt.pos(50, 100);             Laya.stage.addChild(txt);                                                    socket = new Socket();                          output = socket.output;                    ...

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

554. 自定义对话框设置zOrder后,关闭时报错 [ 75%]

...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

555. Laya.loader.load 加载场景报错 [ 75%]

...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

556. DirectionLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 75%]

...阳光。 ```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

557. 请问3D平行光产生的投影 如何修改颜色深浅 [ 75%]

...颜色 改淡一些       //添加方向光 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

558. 我想把flex项目转为laya ts项目,转换过程 mx.containers.Canvas报错 [ 75%]

...omponent):void             {                 this.cab.addChild(child);             }                          public function getDevices():Array             {                 return this.cab.getChildren();             }  ...

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

559. timer.loop里面修改Text.text在微信小程序上用iPhone打开出现闪屏 [ 74%]

...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

560. 3D场景脚本继承问题 (LayaAir 2.0.0) [ 74%]

..."];  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