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

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

831. 进行预加载,每次进入游戏都会重新加载一次 [ 56%]

...。。。】 用这个进行预加载 Laya.loader.load(images, null, Laya.Handler.create(this, onImagesProgress, null, false), Laya.Loader.IMAGE); 但是每次进入都会重新慢慢在加载一次 声音也是一样 2017-02-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

832. 更新到1.7.6beta之后,HBox有bug [ 56%]

...0); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case...

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

833. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 56%]

...回复 ssqhu 赞同来自: qihei Laya.loader.load("res/atlas/test0.png", Handler.create(this, function():void    {     var t:Texture = Laya.loader.getRes("res/atlas/test0.png");     ape = new Sprite();     var matrix:Matrix = new Matrix();     matrix.a = -1;     matrix.tx = 2*...

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

834. TiledMap加载报错 relativePath为空 [ 56%]

...到呢 var TiledMap = Laya.TiledMap; var Rectangle = Laya.Rectangle; var Handler = Laya.Handler; var Sprite = Laya.Sprite; var MapLayer = Laya.MapLayer; Laya.init(800, 800); var map1 = new TiledMap(); map1.createMap("res/maps/scence1.json",new Rectangle(0,0,800, 800),Handler.create(this,onMapLoaded)...

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

835. native 获取Texture上的某个区域的像素点 getPixels中有报错 [ 56%]

...e = new Laya.Texture();         tex.load("res/img/108879.png",Laya.Handler.create(this,function(): void{             tex.getPixels(0,0,1,1);         })); 附件 : --> 2019-06-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

836. 分包后, 资源加载问题 [ 56%]

... Example,并添加到舞台显示 Laya.loader.load("js/loading100.js", Handler.create(this, complete), null, Loader.TEXT); } private function complete(data:*):void { trace("ok3") __JS__("window.eval(data)"); //此行报错 var load:* = __JS__('new loading100()'); Laya.stage.addChild(load); trace("...

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

837. 已经进行微信适配,微信小游戏loader加载xml失败,其他类型加载成功,这个要怎么解决? [ 56%]

...018-02-08 14:32 Laya.loader.load("res/config/preloadAssets.xml", Handler.create(this, this.onPreloadConfigLoaded), null, "xml"); 就一行代码,比如这样的,就是load不下来了,你们小游戏里可以load xml的吗 qian • 2018-02-08 14:42 本地文件必须是ASCI...

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

838. 物理刚体(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 56%]

...`typescript //加载模型 Laya.Sprite3D.load("Conventional/shoot.lh",Laya.Handler.create(this,function(sp:Laya.Sprite3D){ //获取到Meshsprite3d var cube = scene.addChild(sp.getChildAt(0)) as Laya.MeshSprite3D; //获取刚体 var cubeRigid:Laya.Rigidbody3D = cube.getComponent(Laya.Rigidbody3D)...

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

839. 设置自动竖屏后 打包APP 安装到手机后显示黑屏 不设置自动竖屏又正常 [ 55%]

...夹打包)             Laya.loader.load("res/atlas/gameUI.atlas",Handler.create(this,this.gameStart));                                   } 2018-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

840. layabox打包有问题用cordova打包没问题 [ 55%]

...ace("---------------loadBaseConfAfterGame"); Laya.loader.load( temploaArr, Handler.create(this,loadAllBaseConfFun,[_afterGameConfigArr])/*,progressHandler*/); } private function loadAllBaseConfFun(configURLArr:Array):void { trace("-------------loadAllBaseConfFun------------"); } loadconfig这个...

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