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

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

241. UI界面加载有哪些回调方法可用 [ 61%]

UI界面加载有哪些回调方法可用 Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoad...

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

242. Panel滚动条滑块位于最下方 [ 61%]

...ion Main() { Laya.init(1240,800,WebGL); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img:Image=new Image(); img.skin="bg2.png"; panel=new Panel(); panel.vScrollBarSkin...

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

243. 二次开发 异步回调没反应 [ 61%]

...何反应这么慢,附上demo求解答 Laya.Handler.create 回调 Laya.loader.create 进度回调函数执行两次 问题状态 最新活动: 2019-07-02 11:16 浏览: 1219 关注: 1 人 zpo • 2019-09-05 16:23 请问是怎么解决的呢?我们写了个简单的demo测异步回调是测通的...

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

244. 背景音乐音效问题 [ 61%]

... var lobbyRes:Array<any> = [ {url: "Lobby/Sound/BG309.mp3",type:Laya.Loader.SOUND}, } Laya.loader.load(fightLandlordRes, Laya.Handler.create(this, this.resLoaded)); Laya.SoundManager.playMusic("Lobby/Sound/BG309.mp3"); 2017-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

245. 关于mouseThough=true的问题 [ 61%]

...); var assets:Array = []; assets.push({url:[ "fish_6.png" ],type:Loader.IMAGE}); Laya.loader.load(assets,Handler.create(this,onLoaded)); } private function onLoaded():void{ var img:Image = new Image("fish_6.png"); img.on(Event.CLICK,this,onClick); img.mouseThrough = true; Laya.st...

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

246. 微信小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...小游戏中加载资源,如果引用的是本地路径,比如: Laya.loader.load("resources/layaair.png"); 如果项目的目录中,全部大小加起来不超过4M的话,只要能找到本地的资源,怎么写也没问题。 但是,微信小游戏的本地包有4M的限制,一旦...

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

247. [LayaAirIDE3]xcode切入切出声音不播放 [ 61%]

... string): void {         Laya.SoundManager.stopAll();         Laya.loader.clearRes(currentBgmUrl);          Laya.loader.load([{ url: currentBgmUrl, type: Laya.Loader.SOUND }],             Laya.Handler.create(this, () => {                 console.log("----playMusic111 ...

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

248. 鼠标穿透问题 [ 61%]

...e { import laya.display.Sprite; import laya.display.Stage; import laya.net.Loader; import laya.ui.Image; import laya.ui.List; import laya.utils.Handler; import laya.webgl.WebGL; public class Bootstrapper extends Sprite { protected var _list:List; protected var _items:Array; protected var _loadingBg:...

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

249. 设置遮罩(JavaScript-LayaAir基础篇(JS)-位图) [ 61%]

...源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(Res,Handler.create(this,graphicsImg)); })(); function graphicsImg() { img = new Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(Res),150,50); //添加到舞台 Laya.sta...

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

250. js中使用sharedMesh报错 [ 61%]

... (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:479:28) at LoaderManager.__proto._endLoad (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:12775:11) at Loader.onLoaded (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:12752:10) at EventHandler.__proto.runWi...

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