大约有 2,984 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0068 秒)
Laya_社区(2430) Laya2.0_文档(172) Laya3.0_api(101) Laya_示例(79) Laya3.0_文档(65) Laya2.0_api(55) laya_api(42) Laya2.0_示例(40)
... 我用工具转换附件的swf后,打开swf没有东西,用代码也load不出来,麻烦答疑,谢谢了。 附件 : --> levelup.rar 2018-03-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 qian 赞...
来源: Laya_社区 发布时间: 20180301
...= new MovieClip(); ani_border.pivotY = ani_border.pivotX = 245; ani_border.load("swf/planet/border.swf",true); addChild(ani_border); 2018-05-29 3 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 苍蝇也是鸟 赞同...
来源: Laya_社区 发布时间: 20180529
...init(); } public init ():void { this.bg_img.loadImage("ui/bg.jpg",0,0,Laya.stage.width,Laya.stage.height,Laya.Handler.create(this,this.onComplete)); Laya.stage.on(Laya.Event.RESIZE,this,this.onResize); } onComplete():void { this...
来源: Laya_社区 发布时间: 20161116
...e = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(skins, Handler.create(this, this.onSkinLoaded)); } onSkinLoaded() { let tabA = this.createTab(skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#333333"; let tabB =this. createTab(skins[1]); tabB.p...
来源: Laya2.0_示例 发布时间: 20251209
...tage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.flag = true; Laya.loader.load([monkey1Str, monkey2Str], Laya.Handler.create(this, this.onAssetsLoaded)); } onAssetsLoaded() { monkey1Res = Laya.loader.getRes(monkey1Str), monkey2Res = Laya.loader.getRes(monkey2Str); this.ape = new Laya.Sprite(...
来源: Laya2.0_示例 发布时间: 20251209
...:LayaAir下如何加载和使用.JSON文件! package { import laya.net.Loader; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(500,400); Laya.loader.load("unpack.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():v...
来源: Laya_社区 发布时间: 20170807
...mg.texture = "ui/guide01.png"; 或者是 let tex = new Laya.Texture(); tex.load("ui/guide01.png", Laya.Handler.create(this, ()=>{ this.img.texture = tex; })); 但是如果使用ASTC纹理时就会报错,需要使用异步的方式来处理 Laya.loader.load("ui/guide01.ktx", La...
来源: Laya_社区 发布时间: 20220919
...at = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.mesh = plane...
来源: Laya_示例 发布时间: 20251209
...缓存后第一次加载能播放,此后再加载不播放的问题 Laya.loader.create缓存加载的 2017-06-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 gy760736077 赞同来自: 还有,即使缓存了....
来源: Laya_社区 发布时间: 20170614
...的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象之后,再调用资源对象的`destroy()`方法进行销毁。但是这种方法是非常麻烦的。LayaAir2.0为了方便开发者,提供了`Resource.d...
来源: Laya2.0_文档 发布时间: 20210715