大约有 2,264 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0098 秒)
Laya_社区(1811) Laya3.0_api(129) laya_api(84) Laya2.0_api(82) Laya2.0_文档(76) Laya_示例(36) Laya3.0_文档(31) Laya2.0_示例(15)
...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
...ge的skin值来动态更换图片。 sprite可以通过sprite.graphcis.drawTexture来实现动态更换图片,当更换新的图片Texture的时候,clear掉之前的显示,将最新的texture赋值就可以了。 2017-01-12 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...
来源: Laya_社区 发布时间: 20170112
...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
...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
...透明底。 Font descriptor:字体描述文件,选择 xml。 Textures:纹理图片格式,选择 png。  7.导出位图字体。选择菜单栏的 Options->Save bitmap font as...,导出生...
来源: Laya2.0_文档 发布时间: 20201114
...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
...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
...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
...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
...另一张 代码如下: 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