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

大约有 1,738 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0064 秒)

361. 如何获取舞台宽高? [ 82%]

如何获取舞台宽高? Laya3D.init(w, h)后 Laya.stage.width和height的值分别为w和h。如何获取实际舞台的宽高?就是类似stage.stageWidth和stage.stageHeight的值 2018-11-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

362. 计时器-延迟执行 [ 82%]

... 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

363. 关于微信小游戏的开放数据域,请问如何将开放数据域的canvas绘制到layaair的image上? [ 82%]

...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

364. 怎么实现文本两端对齐? [ 82%]

...bel设置一个固定的宽高 2、如果label.text的内容超出了label.width,那么默认超出部分会从右侧继续延伸显示 3、如果label.text的内容小于等于label.width,你会发现label.text是居右对齐的 也就是说,label的对齐方式是在label.text不超过label....

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

365. 位图文本怎么做渐变消隐动画? [ 82%]

...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

366. laya.resource.Texture2DArray_API3.0 [ 82%]

...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

367. laya.d3.resource.RenderTextureCube_API3.0 [ 82%]

...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

368. laya.device.media.HtmlVideo_API3.0 [ 82%]

... 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

369. 3d 轮廓描边示例改描边颜色无效 [ 82%]

...camera.viewport; var renderTexture = RenderTexture.createFromPool(viewPort.width,viewPort.height,RenderTextureFormat.R8G8B8A8,RenderTextureDepthFormat.DEPTHSTENCIL_NONE); //将RenderTexture设置为渲染目标 buf.setRenderTarget(renderTexture); //清楚渲染目标的颜色为黑色,不清理深...

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

370. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 82%]

...     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