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

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

351. 在创建了 Textture2D如何对其进行宽高赋值 [ 72%]

...创建了 Textture2D如何对其进行宽高赋值 你好,我在创建了Texture2D后 ,我想对其进行宽高赋值,我发现没有相关的方法,而width和hight都是只读的。求解答。 另外我想设置像素,我看到可以getPixels ,但没有setPixels也同样求解。 我...

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

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

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

353. laya.display.Input_API3.0 [ 72%]

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

354. laya.ui.List [ 72%]

...手动刷新。 注意: 1.Sprite tag : * 对象的标签。 Component texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer...

来源: laya_api 发布时间: 20170929

355. 想用camera做一个类似照相机的功能 [ 72%]

...           this.renderTargetCamera.renderTarget = new RenderTexture(Laya.stage.width, Laya.stage.height);             //渲染顺序             this.renderTargetCamera.renderingOrder = -1;             //清除标记             this.r...

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

356. laya.ui.Tree_API3.0 [ 71%]

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

357. laya.ui.TextInput_API3.0 [ 71%]

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

358. laya.display.Animation [ 71%]

...但是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...

来源: laya_api 发布时间: 20170929

359. [laya2.0]3D场景怎么截屏 [ 71%]

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

360. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 71%]

...下: ```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