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

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

171. Panel的滚动条皮肤问题 [ 68%]

...图  (ui库版本为 LayaAir 1.7.2)  // panel容器 var panel; Laya.loader.load(["images/scrollbar.png","images/scrollbar$bar.png"], Laya.Handler.create(this, panelContent)); function panelContent() { panel = new _this.Panel(); panel.size(1081, 507); panel.pos(153, 141); panel.zOrder = 21; pan...

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

172. laya.net.LoaderManager [ 68%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderManagerProperties | Methods | Events Packagelaya.netClasspublic class LoaderManagerInheritanceLoaderManager EventDispatcher Object LoaderManager 类用于用于批量加载资源。此类是单例,不要手动实...

来源: Laya2.0_api 发布时间: 20190513

173. 关于laya图片资源缓存的问题 增量更新文件缓存 [ 68%]

...const res = [{ url: setStaticPrefix("card/card_item_bg.png"), type: Laya.Loader.IMAGE }] /** 添加文件hash */ export const setStaticPrefix = (url:string) :string => { if (staticHash[`images/${url}`]) { return staticHash[`images/${url}`] } return `images/${url}` }然后资源导出的时候使...

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

174. scaleMode设为full时怎么pc浏览器跟平板上效果不一样? [ 68%]

....alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load("assets/bg.jpg", Handler.create(this, loadCompleteHandler)); } private function loadCompleteHandler():void { var bg:Image = new Image("assets/bg.jpg"); Laya.stage.addChild(bg); }这张图在三星平板上可以...

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

175. progressbar设置皮肤后, 马上destroy会报bug [ 68%]

... if (this._skin != value) { this._skin = value; if (this._skin && !Loader.getRes(this._skin)) { ILaya.loader.load(this._skin, Handler.create(this, this._skinLoaded), null, Loader.IMAGE, 1); // TODO TS } else { this._skinLoaded(); } } } protected _skinLoaded(): void { this._bg.skin = this._sk...

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

176. 仅在Android微信小游戏下图片错乱 [ 68%]

...小游戏下图片错乱 static preLoadPublicAssets(){ this.sAssetList = Loader.getRes("file_list.json") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets inited !!!!") console....

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

177. 微信小游戏与加载图片时不会触发erroe事件 [ 68%]

微信小游戏与加载图片时不会触发erroe事件 Laya.loader.on(Laya.Event.ERROR, this, function(){ console.log("err"); }); Laya.loader.load([{url:"res/general/test.png",type:laya.net.Loader.IMAGE}]); 2018-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

178. Panel初始化BUG [ 68%]

...ecovery • 2021-11-15 18:42 改成这样试试看 onEnable(): void { Laya.loader.load("comp/image.png", Laya.Handler.create(this, this.onResReady)); } private onResReady() { let panel = new Laya.Panel(); Laya.stage.addChild(panel); panel.graphics.drawRect(0, 0, 300, 300, "#ffcccc&quo...

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

179. Cannot read property 'load' of null [ 68%]

...ayaAir引擎 Cannot read property 'load' of null 查了断点,看到Laya.loader是null,为什么会出现为null的情况?  代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static g...

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

180. 图片如何切割 AS3 [ 67%]

...错了 正确顺序: var img:Image = new Image();  var t:Texture = Laya.loader.getRes(_resUrl); img.graphics.save();//必须要调用 否则报错  img.graphics.clipRect(100,100,200,200);  img.graphics.drawTexture(t);  img.graphics.restore();  this.addChild(img); 2019-01-11 0 0 分享 微博 QZ...

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