大约有 667 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0070 秒)
Laya_社区(280) Laya3.0_api(93) Laya2.0_api(73) laya_api(62) Laya_示例(54) Laya2.0_示例(54) Laya2.0_文档(33) Laya3.0_文档(18)
... 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
...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
...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component downButton : Button下按钮 ScrollBar e...
来源: laya_api 发布时间: 20170929
...引导容器 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
...置绕自身中心点旋转,我这么设置_ani.pivot(_ani.width/2,_ani.height/2);不行,而且也没有锚点可以设置,如何实现 (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 怎么让模型原地依照Y轴旋转到 我指...
来源: Laya_社区 发布时间: 20200324
...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
....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
...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
...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
...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