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

大约有 1,754 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0067 秒)

361. 计时器-延迟执行 [ 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_示例 发布时间: 20251209

362. 关于微信小游戏的开放数据域,请问如何将开放数据域的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

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

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

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

364. 位图文本怎么做渐变消隐动画? [ 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

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

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

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

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

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

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

370. laya.resource.nativecontext..context2d.CONTEXT2D_FUNCTION_ID_API3.0 [ 82%]

...0; right: 0; z-index: 1000; margin: 0; height: 68px; border-radius: 0; min-width: 310px; background-color: #1A1A1A; background-image: none; border: none; } #laya_content { width: 100%; height: auto; margin: 0px auto 0 auto; } @media (max-width: 767px) { #laya_content { overflow: auto; margin: 0px au...

来源: Laya3.0_api 发布时间: 20230115