大约有 235 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0034 秒)
Laya_社区(149) Laya2.0_文档(47) Laya2.0_示例(16) Laya_示例(12) Laya3.0_文档(7) Laya3.0_api(2) Laya2.0_api(2)
...mplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = Laya.Sprite3D.instantiate(layaMonkey, this.scene, false, new Laya.Vector3(0.6, 0, 0)); //克隆sprite3d var layaMonkey_clo...
来源: Laya2.0_文档 发布时间: 20210714
...wf():void { // console.log("ssss"); // let mc:Laya.MovieClip = Laya.loader.getRes("res/swf/star.swf"); // Laya.stage.addChild(mc); } } } new laya.Loader_MultipleType(); 2018-02-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20180203
...game.ls", Laya.Handler.create(this, () => { let gameScene = Laya.loader.getRes("res/scenes/LayaScene_game/game.ls") as Laya.Scene; Laya.stage.addChild(gameScene); }, null), Laya.Handler.create(this, (progress) => { console.log("当前进度:", progress) },null,false), Laya.Scene );07-11 16:53:...
来源: Laya_社区 发布时间: 20190711
...mplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = Laya.Sprite3D.instantiate(layaMonkey, this.scene, false, new Laya.Vector3(0.6, 0, 0)); //克隆sprite3d var layaMonkey_clo...
来源: Laya2.0_文档 发布时间: 20210715
...reate(this,this.onAssetsLoaded)); } onAssetsLoaded(){ let pg = Laya.loader.getRes("res/213.part"); let pd = new Laya.Particle2D(pg); } }213.part是设计模式下生成 附件 : --> 2018-11-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20181120
..., this.onLoaded)); } private onLoaded():void { this.createView(Laya.loader.getRes("view/MyView.json")); } } 因为加载是异步的,很有可能在加载过程中,用户或者其他行为逻辑已经反复开关这个界面多次了。是否意味着onLoaded会多次回调回来。如何判断...
来源: Laya_社区 发布时间: 20180113
...te():void { //获取资源 var layaMonkey:Sprite3D = scene.addChild(Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")) as Sprite3D; //克隆sprite3d var layaMonkey_clone1:Sprite3D = Sprite3D.instantiate(layaMonkey, scene, false, new Vector3(0.6, 0, 0)); //克隆sprite3d var layaMonk...
来源: Laya2.0_文档 发布时间: 20210715
...e = new Sprite(); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(apePath); this.ape.graphics.drawTexture(texture); this.ape.x = (Laya.stage.width - texture.width) / 2; this.ape.y = (Laya.stage.height - texture.height) / 2; } applayFilter() { // 创建一个模糊滤镜 const BlurFil...
来源: Laya2.0_示例 发布时间: 20251130
...交 1 个回复 Laya_XS 赞同来自: Laya.loader.load配合 Laya.loader.getRes使用即可判断文件是否加载成功,你也可以通过Laya.loader.on(Event.Error,this,onError)从失败里获取文件的加载状态, 2018-04-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...
来源: Laya_社区 发布时间: 20180406
...mplete)); } private onComplete(): void { var texture:Texture = Laya.loader.getRes("start/sg.png"); var sp = new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); Laya.stage.addChild(sp); var ani: Laya.Animation = new Laya.Animation(); ani.loadAtlas("res/start.json"); // 加载图集动画 ani.int...
来源: Laya_社区 发布时间: 20170329