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

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

1431. 怎么给UI上的Label 的text赋值 [ 65%]

...19-05-20 15:11 浏览: 2212 关注: 3 人 Supermang42 • 2018-08-10 14:17 this.sx.text = " xxx "; Supermang42 • 2018-08-10 14:17 this ← 是你的UI Lancer • 2018-08-10 17:04 @Supermang42:我添加Laya.stage.addChild(this)之后,text才被赋值,但是把先前addChild()的内容...

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

1432. 什么情况下Tween缓动会停止?除了暂停函数外 [ 65%]

...报错,非必现。 //播开始动画 var kaishi = new StartAnimView(); this.addChild(kaishi); kaishi.playAnim(); this.anim_array.push(kaishi);  Laya.timer.once(1700, this, function () { kaishi.onDestroy(); kaishi.destroy(true);   两个脚本是相互独立的。 2020-01-13 添加评论 免费...

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

1433. ComboBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 65%]

....bgColor = "#232628"; //加载资源 Laya.loader.load(skin, Handler.create(this, onLoadComplete)); } /***加载资源完成***/ private function onLoadComplete(e:*=null):void { //实例化下拉列表 comboBox= new ComboBox(skin, "item0,item1,item2,item3,item4,item5"); //按钮标签字体大小 com...

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

1434. 关于js继承类class的参数问题 [ 65%]

...{      *     function Item(){      *         Item.__super.call(this);//初始化父类      *         this.graphics.drawRect(0, 0, 100, 20, "#ff0000");      *         var label = new laya.ui.Label();//创建一个 Label 类的实例对象 label 。      *         lab...

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

1435. Touch接口缺少stageX,stageY [ 64%]

...   if (touches && touches.length == 2) {                 this.preRadian = Math.atan2(                     touches[0].stageY - touches[1].stageY,                     touches[0].stageX - touches[1].stageX);                 Laya.stage.on(Event.MOUSE_MOVE, th...

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

1436. 如何拓展材质shader? [ 64%]

...ial) {                var layaBlinnPhongExt:LayaBlinnPhongExt=this;         var layaBlinnPhong:Laya.BlinnPhongMaterial=baseMat;                layaBlinnPhongExt.albedoTexture = layaBlinnPhong.albedoTexture;         layaBlinnPhongExt.albedoIntensity = layaBlinn...

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

1437. 多种碰撞器形状(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 64%]

... ```typescript Mesh.load("res/threeDimen/Physics/table.lm", Handler.create(this, function(mesh:Mesh):void { //....省略中间 //读取导出的桌子模型 var table:MeshSprite3D = scene.addChild(new MeshSprite3D(mesh)) as MeshSprite3D; //给桌子加刚体并且设置刚体属性 var rigidBody:Rig...

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

1438. 如何隐藏tiledMap中指定的GridSprite? [ 64%]

...ction(gridX,gridY){ var tSprite=new GridSprite(); tSprite.relativeX=gridX *this._map.gridWidth; tSprite.relativeY=gridY *this._map.gridHeight; tSprite.initData(this._map); this._gridSpriteArray.push(tSprite); return tSprite; }这个根本是新建一个GridSprite,而不是返回现有的吧,这...

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

1439. 我给加载进来的UI界面中一个图片,添加点击更换图片的事件,需要点击两次才能更换图片 [ 64%]

...样的。你这样调整下就行了: function showui() { showui.super(this); var arr2 = new Array(); arr2.push(this.dimg); this.dimg.on(Laya.Event.CLICK, this,apeclick2, arr2); } function apeclick2(that) { console.log("apeclick sucess"); that.skin = "../img/5.jpg"; console.log(that); that.zOrder ...

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

1440. 动画加载不出 [ 64%]

...main函数里面 叔年心~厌世 • 2019-10-10 16:45 for(var i=0;i<this.moneyArr[rr].length;i++){ let sp=new Laya.Animation(); //添加金币 sp.loadAnimation('anis/money.ani'); sp.play(0,true); loadder.addChild(sp); loadder.name = 'money'; sp.pos(this.moneyArr[rr][i],-15); } 叔年心~厌...

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