大约有 1,754 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0086 秒)
Laya_社区(1137) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(42)
...ny) => { var filePath = Laya.PAL.g.saveImageTempSync({ data: info.data, width: info.width, height: info.height, fileType: "png", }); // 再使用filePath赋值给src self.img.src = filePath; } ); 2025-08-18 0 0 分享 微博 QZONE 微信 layabox 赞同来自: 我们这边实测,直接使...
来源: Laya_社区 发布时间: 20250818
...方式,解决问题 (这样实现自适应,又不会因SCALE_FIXED_WIDTH适配模式性能问题了) //修改监听舞台变化 Laya.Stage.prototype["_changeCanvasSize"] = function(){ Laya.stage.designWidth=Laya.stage.height*Laya.Browser.width/Laya.Browser.height; Laya.stage.setScr...
来源: Laya_社区 发布时间: 20171017
...3DUnderPoint 里判断点击区域得考虑设置视图矩形后viewport.width 变小的问题 见图二 附件 : --> 2024-06-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Fred 赞同来自: 您好,...
来源: Laya_社区 发布时间: 20240613
...Through name tag drawtocanvCtx unDestroyedScenes Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation glob...
来源: Laya3.0_api 发布时间: 20231115
...x.html这个有关系吗: <div style="position:absolute;top: 32%;width: 80%;left: 10%;text-align:center;"> <img src="loading_logo.png" style="width: 100%;max-width:500px;" /> </div> 梦太晚 • 2019-06-20 12:56 @qian:请问可否告知,android st...
来源: Laya_社区 发布时间: 20180307
...d-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalScaleX : Number[read-only] 获得相对于stage的全局X轴...
来源: laya_api 发布时间: 20170929
... const shape = new Laya.BoxShape2D(); shape.x = object.width / 2; shape.y = object.height / 2; shape.width = 1; shape.height = 1; rigidBody.shapes = [shape]; return rigidBody; } 附件 : --> 2025-04-03 添加评论...
来源: Laya_社区 发布时间: 20250403
...幕宽高为`375*667`。LayaAir引擎可以通过laya.utils.Browser.clientWidth和laya.utils.Browser.clientHeight来获取屏幕的宽与高。 **6、物理宽高:** 关于设备屏幕的物理宽高,我们需要先了解像素密度的概念。在PC电脑上,通常一个像素位置上就...
来源: Laya2.0_文档 发布时间: 20200307
...面的“ tempSpr2.graphics.drawTexture(tempSpr.texture, 0, 0, tempSpr.width, tempSpr.height);”中 tempSpr.texture 是空的 if (data && data.items != []) { let tempSpr: Sprite = new Sprite(); let tempImg: Laya.Image; let arr: Arr...
来源: Laya_社区 发布时间: 20170508
...d-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalScaleX : Number[read-only] 获得相对于stage的全局X轴...
来源: laya_api 发布时间: 20170929