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

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

331. laya3d到处的模型文件 [ 53%]

...型,每次都要 let waimianSp:Laya.Sprite3D = Laya.loader.getRes("res/atlas/LayaScene_test2/Conventional/test2.lh") as Laya.Sprite3D; let sp3d:Laya.Sprite3D = waimianSp.getChildByName("KWHF_L") as Laya.Sprite3D; sp3d才是我要用到的模型(并且我每个模型文件里面只有一个模...

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

332. webgl 下当对象子显示对象存在panel且panel有子集时,旋转此显示对象会导致此显示对象的同级对象消失!(1.7.10beta) [ 53%]

...; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loadComp)); } private loadComp():void{ var parent:ui.ParentViewUI = new ui.ParentViewUI(); Laya.stage.addChild(parent); //当注释掉设置rotaion的代...

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

333. 动效模板(JavaScript-LayaAir基础篇(JS)-动画基础) [ 52%]

...源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例化导出的UI类 var efc = new ui.TestPUI(); //添加到舞台 Laya.stage.addChild(efc); } ``` 运行后,按钮被按下时,动画效果...

来源: Laya2.0_文档 发布时间: 20210715

334. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 52%]

...源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例化导出的UI类 var efc:ui.EffectAnimationDemoUI = new ui.EffectAnimationDemoUI(); //添加到舞台 Laya.stage.addChild(efc); } }...

来源: Laya2.0_文档 发布时间: 20210715

335. laya2.x 图集的资源版本管理问题 [ 52%]

...存在 https://3dparking-1256769450.cos.ap-shanghai.myqcloud.com/test/res/atlas/main.png   2019-06-13 0 12 分享 微博 QZONE 微信 kylin 赞同来自: 目前来看,即使加了版本管理,引用云上资源仍然引用的无版本号的资源。现在的问题是即使是无版本管理的...

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

336. 安卓上的百度小游戏,playMusic会出现多个背景音乐 [ 52%]

...的话,会有资源load不上来,报错:[error]Failed to load: res/atlas/test.atlas H5_Gamker • 2020-06-23 19:55 是不是换了适配库之后外面有些调用会对不上 157*****593 • 2020-06-23 20:16 清理一下缓存 H5_Gamker • 2020-06-24 09:33 换了新的库之后,之前的...

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

337. 动效模板(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 51%]

...载图集资源,加载成功后添加到舞台 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例导出的UI类 var efc:EffectAnimationDemoUI = new EffectAnimationDemoUI(); //添加到舞台 Laya.stage.addChild(efc); } } } ``` 运...

来源: Laya2.0_文档 发布时间: 20210715

338. laya.net.LoaderManager [ 51%]

...源是否已经加载完毕。 注意:cache参数只能对文件后缀为atlas的资源进行缓存控制,其他资源会忽略缓存,强制重新加载。 LoaderManager  decodeBitmaps(urls:Array):void 解码Texture或者图集 LoaderManager event(type:String, data:* = null):Boolean 派发...

来源: Laya2.0_api 发布时间: 20190513

339. 关于大量图片加载绘制后的内存暴增的疑问 [ 51%]

...w(); Laya.stage.bgColor="#EEFFCC"; //预加载图集 Laya.loader.load("res/atlas/bag.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { sp=new Sprite(); Laya.stage.addChild(sp); //每隔0.05秒出现下张图片 Laya.timer.loop(50,this,onLoop); } private fun...

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

340. 【laya2.0】加载并且显示图片,并且让该图片居于舞台中央,怎么写? [ 51%]

...r logo = new Laya.Sprite(); Laya.stage.addChild(logo); logo.loadImage("res/atlas/test.png", Laya.Handler.create(this, function(){ console.log("complete!!"); logo.x= Laya.stage.width/2-logo.width/2; logo.y= Laya.stage.height/2-logo.height/2; //logo.pos(Laya.stage.width/2-logo.width/2,Laya.stage.heigh...

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