大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0050 秒)
Laya_社区(702) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(75) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...暂停继续播放,只能从头开始,pc端正常,代码如下 private playSoundLead() { if (!this.soundMan || this.playBoo) { this.soundMan = Laya.SoundManager.playMusic(this.leadSoundUrl, 1, Handler.create(this, this.soundEndFun1)); this._...
来源: Laya_社区 发布时间: 20190919
...ive模式出包。手机上调用此方法返回的对象类型不对 private _agentTexture: any; private _agent:Laya.Sprite; public startDrag(dragCom: Laya.Sprite, touchID: number, sourceData?: any): void {let bounds = dragCom.getSelfBounds(); this._agentTexture = Laya.Sprite.drawToTextur...
来源: Laya_社区 发布时间: 20210911
...邀请: 与内容相关的链接 提交 2 个回复 nieyiwei 赞同来自: private var _guideImage:Image; public function main():void { _guideImage = new Image(); _guideImage.source = Loader.getRes("source/png/ui/1/guideImg.png"); tweenGuide1(_guideImage ); Tween.clearAll(_guid...
来源: Laya_社区 发布时间: 20161216
...共享材质,用于合批 public batchMat: Laya.Material; //颜色数目 private _colorNums = 20; //精灵数目 private _spriteNums = 200; private _createColorBufferData() { //随机给20个颜色值 let colorBuffer = new Float32Array(20 * 4); for (var i = 0; i < this._colorNums; i++) { let of...
来源: Laya3.0_文档 发布时间: 20251010
...Texture2D onAsynLoaded(url:String, data:*, params:Array):void[override] private DataTexture2DProtected Methods MethodDefined By detoryResource():void[override] 销毁资源。 DataTexture2D recreateResource():void[override] 重新创建资源,如果异步创建中被强制释放再创...
来源: laya_api 发布时间: 20170929
...动画的宽度高度, 求前辈指点下,谢谢! 代码如下: //private strAniConfPath:string = "res/fighter/fighter.json" //private aniFighter:Animation; this.aniFighter = new Animation(); this.aniFighter.loadAtlas(this.strAniConfPath); Laya.stage.addChild(this.aniFighter); this...
来源: Laya_社区 发布时间: 20181023
...caleMode = "showall"; Laya.stage.bgColor = "#232628"; this.createText(); } private createText(): void { var txt: Text = new Text(); //给文本的text属性赋值 txt.text = "Layabox是性能最强的HTML5引擎技术提供商与优秀的游戏发行商,面向Flash开发者提供HTML5开发技术...
来源: Laya_示例 发布时间: 20251209
...e.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.showApe(); } private showApe(): void { // 方法1:使用loadImage var ape: Sprite = new Sprite(); Laya.stage.addChild(ape); ape.loadImage("res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("res/apes/monkey2.png", H...
来源: Laya2.0_示例 发布时间: 20251209
...his.templet.loadAni("comp/skeleton/spineboy.sk"); } protected onExit() {}; private onError() { console.log("parse error"); } private parseComplete() { //从动画模板创建动画播放对象 let hero = this.templet.buildArmature(1); hero.pos(200, 0); //切换动画皮肤 hero.showSkinByIndex(0); /...
来源: Laya_社区 发布时间: 20180905
...,'ui/vscroll$down.png','ui/vscroll$up.png'],Handler.create(this,start)); } private function start():void { var panel:Panel=new Panel();//添加panel,切忌要先将panel添加到舞台同时设置宽高,然后再去添加子对象 panel.width=500; panel.height=500; panel.vScrollBarSkin='ui/vscro...
来源: Laya_社区 发布时间: 20170601