大约有 1,011 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0095 秒)
Laya_社区(717) Laya3.0_api(68) Laya2.0_api(59) laya_api(56) Laya2.0_文档(47) Laya3.0_文档(27) Laya_示例(27) Laya2.0_示例(10)
...创建了 Textture2D如何对其进行宽高赋值 你好,我在创建了Texture2D后 ,我想对其进行宽高赋值,我发现没有相关的方法,而width和hight都是只读的。求解答。 另外我想设置像素,我看到可以getPixels ,但没有setPixels也同样求解。 我...
来源: Laya_社区 发布时间: 20190313
...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
...tage staticCache stroke strokeColor templateVars text textHeight textWidth texture timer transform type ubb underline underlineColor url valign viewport visible width wordWrap x y zOrder Methods _initialize _processActive _setHeight _setWidth addChild addChildAt addChildren addComponent addComponent...
来源: Laya3.0_api 发布时间: 20231115
...手动刷新。 注意: 1.Sprite tag : * 对象的标签。 Component texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer...
来源: laya_api 发布时间: 20170929
... this.renderTargetCamera.renderTarget = new RenderTexture(Laya.stage.width, Laya.stage.height); //渲染顺序 this.renderTargetCamera.renderingOrder = -1; //清除标记 this.r...
来源: Laya_社区 发布时间: 20200529
...em selectedPath skewX skewY source spaceBottom spaceLeft stage staticCache texture timer toolTip top transform url viewport visible width x xml y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains cust...
来源: Laya3.0_api 发布时间: 20231115
...kewY skin stage staticCache stroke strokeColor templateVars text textField texture timer toolTip top transform type ubb underline underlineColor url valign viewport visible width wordWrap x y zOrder Methods _initialize _processActive _setHeight _setSkin _setWidth addChild addChildAt addChildren addC...
来源: Laya3.0_api 发布时间: 20231115
...但是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...
来源: laya_api 发布时间: 20170929
...LCanvas = Laya.stage.drawToCanvas(600, 1000, 0, 0); let tex: laya.resource.Texture = canvas.getTexture(); let sp: Laya.Sprite = new Laya.Sprite(); sp.texture = tex; Laya.stage.addChild(sp); 附件 : --> 2019-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20191012
...下: ```java package { import laya.display.Sprite; import laya.resource.Texture; import laya.utils.Handler; public class MaskDemo { private var Res:String; private var img:Sprite; public function MaskDemo() { Laya.init(1136,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //资源路...
来源: Laya2.0_文档 发布时间: 20210714