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

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

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

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

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

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

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

384. worker.js 使用问题 [ 81%]

...text': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:33519)     at Texture2D.__proto.recreateResource (laya.d3.js:33562)     at Texture2D.__proto.activeResource (laya.core.js:13234)     at Texture2D.<anonymous> (laya...

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

385. 位图字体的制作与使用(ActionScript-LayaAir基础篇(AS3)-文本) [ 80%]

...透明底。 ​ Font descriptor:字体描述文件,选择 xml。 ​ Textures:纹理图片格式,选择 png。 ​ ![图片1.png](http://ldc.layabox.com/uploadfile/image/20160518/1463538975736762.png) ​ 7.导出位图字体。选择菜单栏的 Options->Save bitmap font as...,导出生...

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

386. 关于微信小游戏关系链的问题 [ 80%]

...s,function(){ console.log(Browser.window.sharedCanvas)       var rankTexture=new Texture(Browser.window.sharedCanvas);       rankTexture.bitmap.alwaysChange=true; console.log(rankTexture)       LayaUISample.scoreview.graphics.drawTexture(rankTexture,5,78,rankTexture.width,rankTextu...

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

387. 加载的nativeimage处理 [ 80%]

...LoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var texture:Texture=Loader.getRes("ui/image.png"); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture); Laya.stage.addChild(sp); } 2017-06-03 0 1 分享 微博 QZONE 微信 xiaojun 赞同来自: 是这个 2017-06-03 0 0 ...

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

388. 同一个Graphics里面绘制超过20000个矢量rect的情况下,Uncaught Error: IBQuadrangle count(之前发起的问题不知道为什么找不到) [ 80%]

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

389. laya.display.Graphics [ 80%]

...Color:* = null, lineWidth:Number = 1):void 绘制矩形。 Graphics  drawTexture(tex:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, m:Matrix = null, alpha:Number = 1):Array 绘制纹理。 Graphics  drawTextures(tex:Texture, pos:Array):void 批量绘制同样纹理。 ...

来源: laya_api 发布时间: 20170929

390. Uint8Array的像素数据在ios中无法改变图片纹理,安卓正常 [ 80%]

...另一张 代码如下: private _testSetPixels() { let data = this.test1.texture.getPixels(0, 0, this.test1.width, this.test1.height); let width = this.test1.width; let height = data.length / 4 / width; let tex2d = new Laya.Texture2D(width, height, 1); tex2d.setPixels(data); this.imgAr.texture.set...

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