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

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

421. laya.display.BitmapFont_API3.0 [ 79%]

...ediately dict fontSize letterSpacing lineHeight lock maxWidth name padding texture tint url uuid DEBUG Accessors cpuMemory destroyed gpuMemory id obsolute referenceCount cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event...

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

422. [求助]无法使用loader预先加载 [ 79%]

...a.loader.on(Event.ERROR, this, onError);   private function onAssetLoaded(texture:Texture):void{             //console.log("111: ");                          txt.visible=false;             title = new Sprite();             Laya.stage.addCh...

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

423. [LayaAir3]Laya.loader 加载png图片失真 [ 79%]

...er.load(url, {                             type: Laya.Loader.TEXTURE2D,                             propertyParams: {                                 premultiplyAlpha: true,    // 不预乘alpha                                 filterMode:...

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

424. 怎么加载网络上的图片 [ 79%]

...系统下 blendMode='lighter' 图片异常 IDE1.7.8 json图集加载问题 Texture图片能否进行翻转? 路径是对的,但老是,调试控制台提示:错误,图片是IDE自带的,也不显示 为什么有的图片打包,有的图片不打包? 如图 如何获取图片每个像...

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

425. laya.net.LoaderManager_API3.0 [ 79%]

...ds cacheRes cancelLoadByUrl cancelLoadByUrls clearRes clearResByGroup clearTextureRes clearUnLoaded create decodeBitmaps event getRes hasListener load off offAll offAllCaller on once setGroup Constructors constructor new LoaderManager(): LoaderManager Defined in laya/net/LoaderManager.ts:72 创建...

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

426. 同一个Graphics里面绘制超过20000个矢量rect的情况下,Uncaught Error: IBQuadrangle count(带悬赏的每次都创建订单失败,之后在社区里面看不到) [ 79%]

...10000) { var htmlCanvas:HTMLCanvas = a.drawToCanvas(width,height,0,0); var texture:Texture = new Texture(htmlCanvas); var b:Sprite = new Sprite(); b.graphics.drawTexture(texture); a.graphics.clear(true); a.destroy(); a = b; } a.graphics.drawRect(10*i, 10*j, 10, 10, "#ff0000"); count++; } } 2018-11-1...

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

427. 为什么自定义shader大图正常,小图就被缩小了 [ 79%]

...ss(myShaderSprite, "myShaderSprite", _super); /* 初始化此类 texture纹理对象 vb顶点数组 ib顶点索引数组 */ myShaderSprite.prototype.init = function(texture,width_Size,height_Size,vb,ib){ this.vBuffer = Laya.VertexBuffer2D.create(); this.iBuffer = Laya.IndexBuffer2D.create(...

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

428. 滤镜-模糊滤镜 [ 79%]

...= Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(apePath); this.ape.graphics.drawTexture(texture); this.ape.x = (Laya.stage.width - texture.width) / 2; this.ape.y = (Laya.stage.height - texture.height) / 2; } applayFilter() { // 创建一个模...

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

429. 最新版本 1.7.5 beta fontClip [ 79%]

...; i < splitArr.length; i++) {                     var te:Texture = _sources[splitArr[i]] as Texture;                     if (_align != "right") {                         this.graphics.drawTexture(te, i * te.width, 0, te.width, te.height);      ...

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

430. 设置内存上限后,时不时会闪屏的问题 [ 79%]

...合集中的话可以在资源预加载后添加以下两行代码: var texture:Texture = Laya.loader.getRes(e.url); texture.bitmap.enableMerageInAtlas = false;   2017-10-31 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 FearWood 相...

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