大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0057 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...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
...报错,非必现。 //播开始动画 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
....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
...{ * 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
... 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
...ial) { var layaBlinnPhongExt:LayaBlinnPhongExt=this; var layaBlinnPhong:Laya.BlinnPhongMaterial=baseMat; layaBlinnPhongExt.albedoTexture = layaBlinnPhong.albedoTexture; layaBlinnPhongExt.albedoIntensity = layaBlinn...
来源: Laya_社区 发布时间: 20191121
... ```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
...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
...样的。你这样调整下就行了: 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
...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