大约有 1,739 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0066 秒)
Laya_社区(1125) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(39)
...=============== 代码都在这里了,也可以查看附近 window.screenWidth = 1280; window.screenHeight = 720; Laya.init(window.screenWidth, window.screenHeight, laya.webgl.WebGL); Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.scaleMode...
来源: Laya_社区 发布时间: 20200223
... this.mapImg.source = texture; this.width = texture.width; this.height = texture.height; this.pos((Laya.stage.width - this.width)/2, (Laya.stage.height - this.height)/2); } ...
来源: Laya_社区 发布时间: 20171019
...layabox.com/question/149 2.然后这个解决方法需要改动viewport 把width去掉,这样的话使用Laya.Browser.clientWidth获取的实际宽高就不是设备的width了 想解决的是:在显示不模糊的情况下,还能获取设备的实际宽高。 2018-02-28 添加评论 免费帖...
来源: Laya_社区 发布时间: 20180228
...00); reference.size(600, 400); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); // 每次舞台尺寸变更时,都会调用Utils.fitDOMElementInArea设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElement...
来源: Laya2.0_示例 发布时间: 20241117
...回复 坚果 赞同来自: 183*****291 、₩ var htmlC = sp.drawToCanvas(width, height, 0, 0); var canvas = htmlC.getCanvas(); canvas.toTempFilePath({ x: 0, y: 0, width: width, height: height, destWidth: width, destHeight: height, success: function (res) { wx.shareAppMessage({ imageUrl: res.tempFi...
来源: Laya_社区 发布时间: 20180517
...stateNum destroyedImmediately lock name offsetX offsetY sourceHeight sourceWidth url uuid DEBUG Accessors bitmap cpuMemory destroyed gpuMemory height id obsolute referenceCount uv valid width cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setG...
来源: Laya3.0_api 发布时间: 20231115
...Sprite(); var sharedCanvas:* = Browser.window.sharedCanvas; sharedCanvas.width = Laya.stage.width; sharedCanvas.height = Laya.stage.height; _sp.graphics.drawTexture(rankTexture,0,0,rankTexture.width,rankTexture.height); Laya.stage.addChild(_sp); 开放域那边初始化的时候宽高和主域宽...
来源: Laya_社区 发布时间: 20180511
..."clipY": "3"}}, {"type": "Label", "props": {"y": "1", "text": "treeItem", "width": "150", "left": "33", "height": "22", "name": "label", "color": "#ffff00", "right": "0", "x": "33"}}, {"type": "Clip", "props": {"x": "0", "name": "arrow", "y": "5", "skin": "ui/clip_tree_arrow.png", "clipY": "2"}}], "...
来源: Laya_示例 发布时间: 20241117
...emRender = Item; tree.xml = xml; tree.size(300, 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; Laya.stage.addChild(tree); } } const Box = Laya.Box, Clip = Laya.Clip, Label = Laya.Label; // 此类对应的json对象: // {"child": [{"type": "Clip"...
来源: Laya2.0_示例 发布时间: 20241117
...的RenderTexture var renderTexture = RenderTexture.createFromPool(viewPort.width,viewPort.height,RenderTextureFormat.R8G8B8,RenderTextureDepthFormat.DEPTHSTENCIL_NONE); this.texture = renderTexture; //将当前渲染的结果拷贝到创建好的RenderTexture buf.blitScreenTriangle(null,renderTextur...
来源: Laya3.0_文档 发布时间: 20230303