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

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

371. laya2.3图集含空白裁切后,锚点旋转bug,demo重现 [ 81%]

...相关的链接 提交 3 个回复 18857358473 赞同来自: var tx3:Laya.Texture = Laya.loader.getRes("test2.png");         var sp3:Laya.Sprite = new Laya.Sprite();         sp3.texture = Laya.Texture.create(tx3,0,0,315,315,134,134,582,582);          sp3.pivot(315/2,315/2);//...

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

372. 模型导出失败 [ 81%]

模型导出失败 Unsupported texture format - Texture2D::EncodeTo functions do not support compressed texture formats.  unity5.6.3  运行环境, Laya2.0  unity插件  模型导出时报这个错 下面附件是我简单弄出来的一个packager,导出其中的cube时会报错,贴图...

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

373. 显示与切换图片(ActionScript-LayaAir基础篇(AS3)-位图) [ 81%]

...基础,本篇从API到示例分别介绍Sprite.loadImage与Graphics.drawTexture两种显示图片的方法。 ## 1、用loadImage方法显示与切换图片 ### 1.1 loadImage API概述 在API文档中搜索laya.display.Sprite,可以找到loadImage()方法,如图1所示,我们先熟悉一下...

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

374. 微信小游戏IDE加载位图字体,提示错误 [ 81%]

...这个问题,laya.core.js,805行加上: __proto.parseFont=function(xml,texture){ if (xml==null || texture==null)return; this._texture=texture; var tX=0; var tScale=1; + if (typeof xml === "string") { + var parser = new DOMParser(); + xml = parser.parser.parserFromString(xml,'text/xml')...

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

375. 玩一玩不能获取到正确读取像素图 [ 81%]

玩一玩不能获取到正确读取像素图 Laya.Texture = Laya.loader.getRes("res/Arrou_NavMap.png") as Laya.Texture; if(navTexture != null) { let pixelBuffer = navTexture.getPixels(0, 0, navTexture.width, navTexture.height);        Texture在玩一玩上获得的像素都是0,在其它...

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

376. 使用 setPixels 设置像素,会同时修改掉其他图片的像素 [ 81%]

...会同时修改掉其他图片的像素;就几句代码 let bitmap:Laya.Texture2D = this.bg2.source.bitmap as Laya.Texture2D; let pixels = bitmap.getPixels(); console.log("pixels:",pixels); for (let i = 0; i < pixels.length; i += 1) { pixels[i] = 0 } bitmap.setPixels(pixels,0) 是这样的。de...

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

377. 如果更换Sprite图片 [ 81%]

...ge的skin值来动态更换图片。 sprite可以通过sprite.graphcis.drawTexture来实现动态更换图片,当更换新的图片Texture的时候,clear掉之前的显示,将最新的texture赋值就可以了。 2017-01-12 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...

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

378. laya.ani.bone.BoneSlot_API3.0 [ 81%]

... BoneSlot Index Properties attachmentName currDisplayData currSlotData currTexture displayIndex name parent srcDisplayIndex templet type Methods copy draw drawBonePoint getMatrix replaceDisplayByIndex replaceDisplayByName replaceSkin setParentMatrix showDisplayByIndex showDisplayByName showSlotData ...

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

379. [LayaAirIDE3]3.3.1 UI点击区域异常,mouseThrough属性失效 [ 81%]

...ough为true,而后设置了node2的子节点0(GWidget的实例)纹理texture为new Laya.Texture。设置纹理之后,mouseThrough的设置就无效了,可以参考Laya.Sprite的mouseThrogh的注释,如下所示: /** * @en For non-UI component display object nodes (container objects or ...

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

380. laya.spine.SpineTexture_API3.0 [ 81%]

...tected All Inherited Externals Only exported Menu Globals "laya/spine/SpineTexture" SpineTexture Class SpineTexture Hierarchy SpineTexture Index Constructors constructor Properties realTexture Methods convertWrapMode getImage setFilters setWraps Constructors constructor new SpineTexture(tex: Texture...

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