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

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

211. 二进制文件打包后,读取不到zip包内的文件 [ 82%]

...要代码如下    let loaditem = [{ url: "test.zip", type: Laya.Loader.PLFB }]         Laya.loader.load(loaditem, Laya.Handler.create(this, function (res) {             let item = 'res/layabox.png'             let getres = Laya.loader.getRes(item...

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

212. Laya.loader.create 进度回调函数执行两次!!! 上次发问题一直没有回复 [ 82%]

Laya.loader.create 进度回调函数执行两次!!! 上次发问题一直没有回复 Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.fl...

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

213. ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null [ 82%]

ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null   附Demo。   想做不同场景之间的切换。 spriteBtn.on(Laya.Event.CLICK, this, function (e) { Laya.stage.destroyChildren(); newScene(); });问题:LayaAirUnityP...

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

214. 头条小游戏二进制文件加载失败 [ 82%]

头条小游戏二进制文件加载失败 Laya.loader.load([         { url:"res/Bag.xml", type:Laya.Loader.BUFFER},         { url:"res/Bag_atlas0.png", type:Laya.Loader.IMAGE },         { url:"res/Bag_atlas0_1.png", type:Laya.Loader.IMAGE},                   ], Laya.Handler.c...

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

215. IDE-显示IDE创建的界面 [ 82%]

...、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。var Loader = Laya.Loader; var Handler = Laya.Handler; var Event = Laya.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码...

来源: Laya_示例 发布时间: 20260815

216. IDE-显示IDE创建的界面 [ 82%]

...、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。var Loader = Laya.Loader; var Handler = Laya.Handler; var Event = Laya.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码...

来源: Laya2.0_示例 发布时间: 20200319

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

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

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

218. Laya.loader.load加载位图字体 [ 82%]

Laya.loader.load加载位图字体 在laya.core.js16251行 __proto.onLoaded   else if (type==="font"){//这里,启用webgl后,HTMLImage.create返回的是Texture2D,不是HTMLImage,data上没有_source这个属性 //导致重复加载图片,走不到else里面,if的判断是否应该改为 ...

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

219. 在加载包含Animation的prefab后,动画没有显示 [ 82%]

...动画进行单独处理?还是不允许把动画放进预制体? Laya.loader.load("prefab/gk2v1.json",Laya.Handler.create(this,function(pref:Laya.Prefab){ var gkpref:Laya.Prefab = new Laya.Prefab(); gkpref.json = pref; var OBJ = Laya.Pool.getItemByCreateFun("gk2v1",gkpref.create,gkpref); this.S...

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

220. httpReqest读取数据问题 [ 82%]

...: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 通过loader加载js文件获取的内容只有两种格式:一种是文本文件,一种是二进制,如果你在加载文件时没有指定加载类型,那么返回的就是文本类型,这个是没问题的,如果你...

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