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

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

871. 分包项目, 加载js时报错 [ 69%]

...th (AA.max.js:674)     at ResInfo.__proto.event (AA.max.js:453)     at LoaderManager.__proto._endLoad (AA.max.js:9492)     at Loader.onLoaded (AA.max.js:9469)     at EventHandler.__proto.runWith (AA.max.js:674)     at Loader.__proto.event (AA.max.js:453) 2017-07-26 添加评论 免费帖 -...

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

872. Panel滚动条滑块位于最下方 [ 69%]

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

873. 如何预加载swf动画 [ 69%]

...画,如何在程序启动前就将该swf放入资源加载序列?Laya.Loader所支持的资源类型里找不到对应的选项。请大神予以指点,谢谢! 2016-11-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

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

874. Sprite3D的克隆(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 69%]

...p=Sprite3D&name=Sprite3DClone)) ```typescript { ...... //加载模型 Laya.loader.create("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/three...

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

875. Unity导出的特效,怎么缓存让第一次加载的时候不卡呢 [ 69%]

...文件后,除第一次外,再加载特效不显示了? 缓存:Laya.loader.create([             ...             "Resources/Player/nan_jianshi/Effect/dmc_skycity_attack1/.lh",             ... ], XXX, XXX);   加载: var effect = actor.mView.root.addChild(Laya.Sprite3D.load...

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

876. 关于mouseThough=true的问题 [ 69%]

...); 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

877. UI-Slider [ 69%]

...ar.png"); skins.push("res/ui/vslider.png", "res/ui/vslider$bar.png"); Laya.loader.load(skins, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { this.placeHSlider(); this.placeVSlider(); } placeHSlider() { const HSlider = Laya.HSlider, Handler = Laya.Handler; let hs = new HSlider("res/...

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

878. UI-CheckBox [ 69%]

...kbox (4).png", "res/ui/checkbox (5).png", "res/ui/checkbox (6).png"]; Laya.loader.load(skins, Handler.create(this, this.onCheckBoxSkinLoaded)); } onCheckBoxSkinLoaded() { let cb; for (let i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alig...

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

879. Image在设置skin的时候可以判断加载不到当前skin就使用默认图片作为skin吗? [ 69%]

...理信息,如果没有返回你就用默认图片。 方案三:先用loader去加载图片,然后用loader.getRes获取资源,如果获取的资源是空的你也可以用默认资源! 2017-02-28 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

880. UI-CheckBox [ 69%]

...", "../../res/ui/checkbox (5).png", "../../res/ui/checkbox (6).png"]; Laya.loader.load(skins, Handler.create(this, onCheckBoxSkinLoaded)); })(); function onCheckBoxSkinLoaded() { var cb; for (var i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.st...

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