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

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

71. Laya.URL.basePath加载不到网络资源 [ 84%]

...网络资源 var resArray = [ { url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS}, // { url: "res/swf/flash.json", type: Laya.Loader.JSON}, // { url: "images/background.png", type : Laya.Loader.IMAGE}, ];   Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2));   Laya.URL.ba...

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

72. 照着官方文档写的 Dialog 报错[ 83%]

...this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype.onPreloaded = function () { this.initLoadData(); }; LoadResource.prototype...

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

73. 加载的nativeimage处理 [ 83%]

加载的nativeimage处理 Loaderload方法type是nativeimage的时候,加载到的img如何应用到Sprite显示出来 2017-06-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同来自: { La...

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

74. ani时间轴动画问题 [ 83%]

ani时间轴动画问题 Laya.loader.load("res/atlas/move.json", Laya.Handler.create(this, onLoaded)); function onLoaded() {     //创建一个Animation实例     var tl = new Laya.Animation();     //加载动画文件     tl.loadAnimation("TimeLine.ani");     //添加到舞台   ...

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

75. 载入U3D导出的粒子特效报错 [ 83%]

...ya.core.js:726)     at ResInfo.__proto.event (laya.core.js:494)     at LoaderManager.__proto._endLoad (laya.core.js:13347) __proto._initBufferDatas @ laya.d3.js:26634 (anonymous) @ laya.d3.js:27190 __proto._parseCustomProps @ laya.d3.js:40855 Utils3D._createNodeByJson @ laya.d3.js:17945 Utils3D....

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

76. 关于资源加载的问题 [ 83%]

...pg"}, {url : "res/atlas/games/game_13/image.atlas"} ]; Laya.loader.load(loadArray, Handler.create(null, ()=>{ this.uiView = new SharkItOff(); Laya.stage.addChild(this.uiView); })); 先加载图集,图集加载完再new一个界面。但是界面里的图片都不显示 thekingret...

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

77. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 83%]

ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? onEnable() { //戏控制脚本引用,避免每次获取组件带来不必要的性能开销 thi   s._loveControl = this.getComponent(LoveControl);  //点击提示文字,开始游戏 this.label_start.on(Laya.Ev...

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

78. 按钮加载皮肤丢失 [ 83%]

...码 先预加载 skinsSecond.push( { url:"allResources/qfbutton.png", type:Loader.IMAGE }); 然后就是一些和服务器交互的操作了,在接到某一条数据,需要用到资源的时候的代码; for (var i:Number = 0; i < allArea.length;i++) {                 var but:Bu...

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

79. 淘宝小游戏 · LayaAir3.0文档 · LAYABOX [ 83%]

...在代码中加载分包,是可以加载到分包内的资源的: Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { // ...... }); Laya.loader.load("sub2/Sphere.lh").then((res: Laya.PrefabImpl) => { // ...... }); 4.2 特殊情况下多级目录的分包 有时开发者的分...

来源: Laya3.0_文档 发布时间: 20240926

80. 2d资源和3d资源没有统一的加载接口? [ 83%]

2d资源和3d资源没有统一的加载接口? 加载2d   Laya.loader.load 加载3d   Laya.loader.create 有没有统一的接口呢? 2018-11-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron ...

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