大约有 1,562 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0056 秒)
...: 0 } sp = new Particle2D(data); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } })();canvas 和webgl 自行切換 附件 : --> 2018-01-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20180109
...ff"; var Img:Laya.Sprite = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(Img); Img.loadImage("res/img/monkey1.png",200); } } new GameMain(); ``` 运行效果如图1所示  (图1) ### 2、刷新显示对象节点树 默认状态下,显示对象节点树中只有`DebugIn...
来源: Laya2.0_文档 发布时间: 20210715
... var tSprite=new Sprite(); this.addChild(tSprite); tHTMLChar.setSprite(tSprite); } } return words; } 2018-10-22 0 0 分享 微博 QZONE 微信 chen 赞同来...
来源: Laya_社区 发布时间: 20180517
...imeout, dt=8,opttimeout=1798 03-09 21:15:03.207 23554 23663 I LayaBox : [addChild][BoundReference] download 成功log: ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 03-09 21:15:16.950 23554 23663 I LayaBox : send httpRequest method:user.checkPlatformExist 03-09 21:...
来源: Laya_社区 发布时间: 20180315
...挂到角色节点 this.iceMonsterAni = new Laya.Animation(); this.owner.addChild(this.iceMonsterAni); this.iceMonsterAni.visible = false; // 默认隐藏 // 2. 开始加载 this.loadMcClips(); } /* ------------------------------------------------- * 对外唯一接口:随机播一条 * ----------...
来源: Laya_社区 发布时间: 20251211
...hics.drawTexture(texture, 0, 0, texture.width, texture.height); Laya.stage.addChild(sprite); }); 2018-11-23 添加评论 已悬赏5元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 阿噗 赞同来自: if(Browser.onMiniGame) { WXOpe...
来源: Laya_社区 发布时间: 20181123
...xture(texture);//把截图绘制到精灵上 * Laya.stage.addChild(sp);//把精灵显示到舞台 * * <p>也可以获取原始图片数据,分享到网上,从而实现截图效果,示例:</p> * *...
来源: Laya_社区 发布时间: 20180719
...123"; text.pos(100, 100); text.width = 500; text.height = 500; Laya.stage.addChild(text); } 参考该贴加载字体方式: https://ask.layabox.com/question/332 附件 : --> LayaFontTest.zip 2018-07-05 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...
来源: Laya_社区 发布时间: 20180705
...ale2d.y; share.x = this.Move2d.x; share.y = this.Move2d.y; this.SceneMajor.addChild(share); share.btShare.on('click',this,function(){ // Laya.SoundManager.playSound(SfxPool.btPress, 1, null); this.SceneShareDark(); }); share.btSignUp.on('click',this, SignUp_Func); var timeLine = new Laya.TimeLine();...
来源: Laya_社区 发布时间: 20180118
...labelSize = 12; button.labelColors = '#000000,#000000,#000000'; Laya.stage.addChild(button); return button; } private onClick(): void { // 触发浏览器文件上传框 let fileInput = Laya.Browser.document.getElementById('file'); fileInput.click(); console.log(fileInput);//input#file } } new GameM...
来源: Laya_社区 发布时间: 20170511