• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 235 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0034 秒)

121. Sprite3D的克隆(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 63%]

...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

122. swf在layaairts里播放的问题,播放不了,swf在群文件star.swf [ 63%]

...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

123. Oppo加载.ls资源错误 [ 62%]

...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

124. Sprite3D的克隆(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 62%]

...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

125. 2.0版本,Particle2D is not a constructor [ 62%]

...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

126. 异步加载一个UI对象时的问题 [ 62%]

..., this.onLoaded)); } private onLoaded():void { this.createView(Laya.loader.getRes("view/MyView.json")); } } 因为加载是异步的,很有可能在加载过程中,用户或者其他行为逻辑已经反复开关这个界面多次了。是否意味着onLoaded会多次回调回来。如何判断...

来源: Laya_社区 发布时间: 20180113

127. Sprite3D的克隆(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 61%]

...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

128. 滤镜-模糊滤镜 [ 61%]

...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

129. 如何判断加载资源是否成功? [ 61%]

...交 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

130. 图集打包后使用Texture不显示,项目整个已经传上来了 [ 61%]

...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