大约有 1,738 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0064 秒)
Laya_社区(1124) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(39)
如何获取舞台宽高? Laya3D.init(w, h)后 Laya.stage.width和height的值分别为w和h。如何获取实际舞台的宽高?就是类似stage.stageWidth和stage.stageHeight的值 2018-11-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20181129
... Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() {...
来源: Laya2.0_示例 发布时间: 20240930
...018-05-03 0 0 分享 微博 QZONE 微信 。。 赞同来自: sharedCanvas.width = width*pixelRatio; sharedCanvas.height = height*pixelRatio; sendMessage({ mission: Mission.RESIZE, width:width, height: height }); wx.onTouchStart(onTouchStart); wx.onTouchMove(onTouchMove); wx.onTouchEnd(onTouchEnd)...
来源: Laya_社区 发布时间: 20180426
...bel设置一个固定的宽高 2、如果label.text的内容超出了label.width,那么默认超出部分会从右侧继续延伸显示 3、如果label.text的内容小于等于label.width,你会发现label.text是居右对齐的 也就是说,label的对齐方式是在label.text不超过label....
来源: Laya_社区 发布时间: 20180126
...g): void { var txt: Text = new Text(); txt.width = 250; txt.wordWrap = true; txt.text = "测试文本"; txt.font = font; txt.leading = 5; txt.pos(Laya.stage.width - txt.width >> 1, L...
来源: Laya_社区 发布时间: 20181227
...Memory height id maxMipmapLevel mipmap mipmapCount obsolute referenceCount width wrapModeU wrapModeV wrapModeW cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event gpuCompressFormat hasListener isCreateFromURL off offAll o...
来源: Laya3.0_api 发布时间: 20231115
...ipmapLevel mipmap mipmapCount multiSamples obsolute referenceCount samples width wrapModeU wrapModeV wrapModeW bindCanvasRender cpuMemory currentActive gpuMemory Methods _addReference _clearReference _createRenderTarget _end _getSource _removeReference _setCPUMemory _setCreateURL _setGPUMemory _star...
来源: Laya3.0_api 发布时间: 20231102
... Accessors cpuMemory destroyed gpuMemory height id obsolute referenceCount width cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getVideo hasListener isCreateFromURL off offAll offAllCaller on once setSource create de...
来源: Laya3.0_api 发布时间: 20231102
...camera.viewport; var renderTexture = RenderTexture.createFromPool(viewPort.width,viewPort.height,RenderTextureFormat.R8G8B8A8,RenderTextureDepthFormat.DEPTHSTENCIL_NONE); //将RenderTexture设置为渲染目标 buf.setRenderTarget(renderTexture); //清楚渲染目标的颜色为黑色,不清理深...
来源: Laya_社区 发布时间: 20201218
... planecoll.x = 0; planecoll.y = 0; planecoll.width = 2775 planecoll.height = 89 chacoll.width = 80 chacoll.height = 120 this.character.addComponentIntance /** 给物体添加刚体属性*/ this.rig ...
来源: Laya_社区 发布时间: 20221207