大约有 1,326 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0064 秒)
...) as Laya.Sprite3D; if (!child) break; if (child.name == nodeName) { child.addChild(Sprite3D); Sprite3D.transform.localPosition = new Laya.Vector3(); return true; } else { if (this.link2Node(nodeName, child, Sprite3D)) { return true; } } index++; } return false; } public static unLink2Node(Sprite3...
来源: Laya_社区 发布时间: 20190918
....emoji = this.skeleton.getAniNameByIndex(0); } this.play(this.emoji); this.addChild(this.skeleton); this.show(); if (this.completeHandler) { this.completeHandler.runWith(this); } } //改变表情 public changeEmoji(emoji:string):void{ if (emoji) { this.emoji=emoji; } if (!this.emojiArr || !this.emoj...
来源: Laya_社区 发布时间: 20180824
...20596907:这个按钮是在编辑模式里设置好的,在代码里直接addchild就行了 woody1720596907 • 2017-11-14 13:19 @ymsdandan:请问下,我打开编辑模式,点这个攻击按钮View,看哪里可以知道它设置的位置啊? ymsdandan • 2017-11-14 13:58 @woody1720596907:...
来源: Laya_社区 发布时间: 20171113
...IED; this._bmpSnap.y = this._contMotion.y + L.H_CLIP + L.GAP_UNIFIED; this.addChild( this._bmpSnap ); /// 快照特效 this._shapeSnapEffect = new egret.Shape; this._shapeSnapEffect.graphics.beginFill( 0xFFFFFF ); this._shapeSnapEffect.graphics.drawRect( 0, 0, L.W_CLIP, L.H_CLIP ); this._shapeSnapEf...
来源: Laya_社区 发布时间: 20170618
...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
...label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } Laya.stage.addChild(label); return label; } } } new laya.UI_Label(); ```
来源: Laya2.0_文档 发布时间: 20210715
...method stub var mc:MovieClip=event.target.content as MovieClip; mc.play(); addChild(mc) } } }提示: 1、在laya下使用laoder加载SWF文件,需添加load()方法的LoaderContext参数。图片则不需要。 2、主文档类不会自动添加舞台,需要在构造函数中收到添加...
来源: Laya_社区 发布时间: 20151224
...le.log("线段数量:", wayList.length); this.mainScene.addChild(pl); for (let i = 1; i < wayList.length; i++) { pl.addLine(wayList[i - 1], wayList[i], Laya.Color.RED, Laya.Color.RED); } 2019-11-19 0 2 分享...
来源: Laya_社区 发布时间: 20180426
....changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(progressBar); //时间间隔循环,每100毫秒改变一次数据 Laya.timer.loop(100, this, changeValue); } /***时间间隔循环回调,更新进度条***/ private function changeValue():void { //最大为1,...
来源: Laya2.0_文档 发布时间: 20210715
...); sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } 发布成单机版apk在移动端安装运行,移动端报错提示: htt...
来源: Laya_社区 发布时间: 20170522