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

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

121. 打包之后TEXT可以显示但是 加载其他资源时白屏 [ 66%]

...的eclipse  扫码 pc 都没问题     Laya.init(600, 400); Laya.stage.bgColor = "#ffffff";  Laya.stage.scaleMode = "exactfit";  Laya.stage.screenMode = "horizontal";  var asset = []; asset.push({ url: ["../res/image/bg.png"], type: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.cre...

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

122. laya.ui.Dialog_API3.0 [ 66%]

...aya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { dialog = new Dialog_Instanc...

来源: Laya3.0_api 发布时间: 20231115

123. layaAirIDE 打包APK 后 真机运行报错 [ 66%]

...a.stage.addChild(i)}!function(){createApes()}(function(){function i(){this.BG_WIDT ReferenceError: createApes is not defined at BG_WIDTH (http://stand.alone.version/main.min.js:1:149) at eval (http://stand.alone.version/main.min.js:1:162) at eval (native) at Document._downloadOk (apploader.js:6125:2...

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

124. Laya2.0添加模糊滤镜报错 [ 66%]

Laya2.0添加模糊滤镜报错 let bg = new Laya.Image(CommonConstant._hunterBgPath); let blurFilter:Laya.BlurFilter = new Laya.BlurFilter(); blurFilter.strength = 4; bg.filters = [blurFilter]; 报错: Laya.BlurFilter is not a constructor 怎么破? 2019-01-05 添加评论 免费帖 --> 分享...

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

125. dialog的lock属性没出现 [ 65%]

....ui.Dialog; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class DialogCenterClose { private const DIALOG_WIDTH:int = 220; private const DIALOG_HEIGHT:int = 275; private const CLOSE_BTN_WIDTH:int = 43; private const CLOSE_BTN_PADDING:int = 5; private var assets:Arra...

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

126. 关于资源加载的问题 [ 65%]

...代码是这样子的 let loadArray = [{url : "games/game_13/shakeask_bg.jpg"}, {url : "res/atlas/games/game_13/image.atlas"} ]; Laya.loader.load(loadArray, Handler.create(null, ()=>{ this.uiView = new SharkItOff(); Laya.stage.addChild(this.uiView); })); 先加载图集,图...

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

127. 通用发布 · LayaAir3.0文档 · LAYABOX [ 65%]

...音乐。打开调试信息,如图2-9所示,可以看到 enemy.lh 和 bgm.mp3 并没有在输出目录中,这是由于 enemy.lh 和 bgm.mp3 是通过代码执行的。代码里引用的资源,必须放到resources目录里,才会被复制到发布目录里,如果代码引用的资源不...

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

128. 资源版本问题 [ 65%]

... }, { url: "icon/追随者UI.png" }, { url: "icon/reg.png" }, { url: "icon/bg.png" }], Laya.Handler.create(this, null), Laya.Handler.create(this, progressload, null, false), null, Laya.loader.IMAGE) })(); } 2018-07-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

129. 百度小游戏的5M本地包与动态资源加载(TypeScript-小游戏适配文档-百度小游戏) [ 64%]

...res/atlas/houzi.atlas", "res/atlas/houzi.png", "common/tishi.png", "common/bg.png", "ui.json", "newLb/bg031.png" ]; ``` **只要是BMiniAdpter.nativefiles里存在的目录名或文件,引擎会自动将该目录视为本地目录**,即便使用了URL.basePath,对于包含在nativefiles白名...

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

130. 重复背景,全方向地图拖动Demo [ 64%]

...fsetY = y * 150 this.downMouseX = 0 this.downMouseY = 0 Laya.loader.load(['bg/world_bg.jpg']) Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.mouseDown) Laya.stage.on(Laya.Event.MOUSE_UP,this,this.mouseUp) this.moveMap(this.offsetX,this.offsetY) } moveMap(x,y){ let X = -x00 let Y = -y00 this.map0.x = ...

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