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

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

761. 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

762. 材质-BlinnPhong-反射贴图 [ 61%]

...yBox; import laya.display.Stage; import laya.events.Event; import laya.net.Loader; import laya.utils.Handler; import laya.utils.Stat; public class BlinnPhong_ReflectMap { private var rotation:Vector3 = new Vector3(0, 0.01, 0); public function BlinnPhong_ReflectMap() { Laya3D.init(0, 0, true); Laya.s...

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

763. 怎么加载多个不同的lm模型? [ 61%]

...形式加载。或者传入地址数组。即可加载多个模型   Laya.loader.create([ {url:"资源目录/模型名字.lm"}, {url:"同上.lm"},  {url:"同上"},  {url:"同上"} ],Handler.create(this,onLoaded)); 2018-05-28 0 2 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 白夜行 Animat...

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

764. 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

765. 原生app缓存能不能不关联热更地址 [ 61%]

...ion 的createFrames 使用已经加载的图集缓存动画失败 请问下loader如何强制加载一个文件,避免浏览器的缓存 请教下微信小游戏的内存和数据缓存? 怎样获取浏览器地址传过来的GET参数 as3中,调用原生js的的时候,如何传递原生JS...

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

766. 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 [ 61%]

....core.js:1410)     at ResInfo.__proto.event (laya.core.js:1166)     at LoaderManager.__proto._endLoad (laya.core.js:14880)     at Loader.onLoaded (laya.core.js:14850)     at EventHandler.__proto.runWith (laya.core.js:1409)     at Loader.__proto.event (laya.core.js:1166)     at Loader.__p...

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

767. .lh 文件不能在同一js文件内重复引用吗? [ 61%]

...得场景内的元素 layaAir TS项目如何引用protoBuf库? 请问下loader如何强制加载一个文件,避免浏览器的缓存 微信小程序 发布后缺少app.json文件 怎么实现同一个工程内分包? 微信小游戏中访问带空格的文件出错 问题状态 最新活动: ...

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

768. 背景音乐音效问题 [ 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

769. 急 苹果手机资源加载超过40M浏览器直接自动刷新页面 [ 61%]

...览器直接自动刷新页面 如题,利用Laya.Sprite3D.load或者Laya.loader.create加载资源,资源是.lh文件(人物模型动画骨骼贴图等),每个角色lh文件及其包含的关联资源大约3M左右,代码中加载15个不同的角色资源,在android手机上没有问...

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

770. 关于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