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

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

511. UI编辑发布后运行lose skin [ 79%]

...aya.WebGL; import Begin = ui.testUI; import Handler = Laya.Handler; import Loader = Laya.Loader; // 程序入口 class GameMain{ private begin: Begin; constructor() { Laya.init(600,400, WebGL); Laya.stage.bgColor = "#000000"; Laya.loader.load("comp/button.png", Handler.create(this, this.onLoaded)); ...

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

512. 图集资源clearRes清除之后下次再用到load时加载失败 [ 79%]

...下次再用到load时加载失败 public LoadImg(url:string):void { Laya.loader.load([{ url:url, type: Laya.Loader.ATLAS }],Laya.Handler.create(this,this.Loa,null)); } private Loa():void { console.log("在又有意义有意义有意义有意义有意义有意义有意义有意义"); } public ClearI...

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

513. js飞机大战报错 请大神看看 [ 79%]

.../Kevin/Desktop/test/AirWar/AirWar09/bin/libs/laya.core.js:467:29)     at LoaderManager.__proto._endLoad (file:///C:/Users/Kevin/Desktop/test/AirWar/AirWar09/bin/libs/laya.core.js:12533:12)     at Loader.onLoaded (file:///C:/Users/Kevin/Desktop/test/AirWar/AirWar09/bin/libs/laya.core.js:12510:11)...

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

514. 预加载音频文件遇到的问题 [ 79%]

...载音频的代码(JS飞机大战示例), //加载声音资源 Laya.loader.load("res/sound/bloodstream_bg.mp3", Laya.Handler.create(this, onLoadedSound), null, Laya.Loader.SOUND); // })(); function onLoadedSound(){ Laya.SoundManager.playMusic("res/sound/bloodstream_bg.mp3", 0, Laya.Handler.cre...

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

515. 加载龙骨动画出报错Uncaught getUint16 error - Out of bounds [ 79%]

...链接 提交 1 个回复 微笑 赞同来自: 龙印 已经解决:: Laya.loader.load("ani/jingbubeipi.sk",Handler.create(this,asd),null,Loader.BUFFER);  在预加载动画时这样在后面参数加上loader.buffer; 2018-09-13 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠...

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

516. 加载多个protobuf文件报错 [ 79%]

...ar assets:Array = [];    assets.push( { url:"protobuf/user.proto", type:Loader.TEXT } );    assets.push( { url:"protobuf/bag.proto", type:Loader.TEXT } );        Laya.loader.load(assets, Handler.create(this, onAssetsLoaded));   首先确认下类型是为TEXT吗,如果这样写就是...

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

517. laya获取图片像素后重新设置回去带有透明像素的地方显示有问题 [ 79%]

...       alive.push({url:"res/FGUIMain/Common_atlas0.png", type:Laya.Loader.IMAGE});          Laya.loader.load(alive, Laya.Handler.create(this, this.LoadFinish));      }      private LoadFinish(success:boolean):void     {         if(success)         { ...

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

518. 求助。资源加载问题,按照官方demo出现问题 [ 79%]

...efab。使用Laya.Sprite3D.load可以加载使用,但是当我使用Laya.loader.create,能加载出来,但是无法正常使用,会提示laya.core.js:12752 Uncaught TypeError: node._setParent is not a function 具体代码如下:    Laya.Sprite3D.load(url, Laya.Hander.create(this, this.o...

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

519. 材质的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 79%]

...质 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")) as Laya.Scene3D; //从场景获取球型精灵 this.sphere = scene.getChildByName("Sphere") as Laya.MeshSprite3D; //获取球型精灵自带的Bl...

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

520. vivo真机加载问题 [ 79%]

...试过,发布到vivo真机调试,直接运行是没有问题的 Laya.loader.load([1.png,2.png,3.png])  返回undefined Laya.loader.load("1.png") 加载返回false Laya.Texture2D.load("1.jpg")  加载返回undefined 求帮助   附件 : --> 2020-03-25 添加评论 已悬赏20元 --> 分享 微...

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