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

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

481. 2.3微信截图分享问题 [ 65%]

... var tempFilePath = canvas.toTempFilePathSync( { x: 0, y: 0, width: 100, height: 100, destWidth: 100, destHeight: 100, fileType: 'jpg', quality: 1.0 });   var canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0).getCanvas();   这是第二种写法。翻了几次论坛据说...

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

482. laya2.0 截图功能分享,直接截取屏幕上所有对象 [ 65%]

...empTexture: Laya.Texture; /**截图 */ public static drawScreenshot(width, height, x, y) { if (!SwitchHelper.screenDraw) { return null; }  if (!this.tempTexture2D) { this.tempTexture2D = new Laya.Texture2D(system.width, system.height); } if (!this.tempTexture) { this.tempTexture = new Laya.Texture(...

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

483. laya.ui.ScrollBar [ 65%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component  downButton : Button下按钮 ScrollBar  e...

来源: laya_api 发布时间: 20170929

484. 关于HitArea的问题 [ 65%]

...引导容器 maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000") 重点来了,这里设置了可点击区域,范围也是全屏,给了舞台 hitArea.hit.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000") 最后,在背景的click事件触发的nextStep...

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

485. 如何通过四元数旋转 [ 65%]

...置绕自身中心点旋转,我这么设置_ani.pivot(_ani.width/2,_ani.height/2);不行,而且也没有锚点可以设置,如何实现 (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 怎么让模型原地依照Y轴旋转到 我指...

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

486. laya.resource.RenderTexture2D_API3.0 [ 65%]

...sion filterMode format gammaCorrection gammaSpace generateMipmap gpuMemory height id isCube maxMipmapLevel mipmap mipmapCount obsolute offsetX offsetY referenceCount samples sourceHeight sourceWidth width wrapModeU wrapModeV wrapModeW cpuMemory currentActive gpuMemory Methods _addReference _clearRef...

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

487. 请问Laya如果获取Laya.Event.CLICK时间的点击坐标? [ 65%]

....Sprite(); clickRect.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height-100 ); clickRect.pos( 0, 0 ); clickRect.size( Laya.stage.width, Laya.stage.height-100 ); Laya.stage.addChild( clickRect ); clickRect.on( Laya.Event.CLICK, this, changeVxVy ); } function changeVxVy( e ){ console.log( e...

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

488. laya.display.Input_API3.0 [ 65%]

...ISIBLE _passwordChar drawtocanvCtx isAppUseNewInput langPacks Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY bgColor blendMode bold borderColor cacheAs color components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize ...

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

489. laya.resource.NativeRenderTexture2D_API3.0 [ 65%]

...sion filterMode format gammaCorrection gammaSpace generateMipmap gpuMemory height id isCube maxMipmapLevel mipmap mipmapCount obsolute offsetX offsetY referenceCount samples sourceHeight sourceWidth width wrapModeU wrapModeV wrapModeW cpuMemory currentActive gpuMemory Methods _addReference _clearRef...

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

490. 其他引擎的Demo-Example_23 [ 65%]

...ya.Browser; var WebGL = Laya.WebGL; var viewWidth = Browser.width; var viewHeight = Browser.height; var lasers = []; var tick = 0; var frequency = 80; var type = 0; (function() { Laya.init(viewWidth, viewHeight, WebGL); Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stage.scaleMode = Stage.SC...

来源: Laya_示例 发布时间: 20260303