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

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

191. UI-Dialog [ 84%]

...= Laya.Handler; var WebGL = Laya.WebGL; var DIALOG_WIDTH = 220; var DIALOG_HEIGHT = 275; var CLOSE_BTN_WIDTH = 43; var CLOSE_BTN_PADDING = 5; var assets; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = St...

来源: Laya_示例 发布时间: 20251209

192. UI-Dialog [ 84%]

...言、LayaAirIDE让项目开发更高效。let DIALOG_WIDTH = 220, DIALOG_HEIGHT = 275, CLOSE_BTN_WIDTH = 43, CLOSE_BTN_PADDING = 5, assets = ["res/ui/dialog (1).png", "res/ui/close.png"]; class UI_Dialog { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = ...

来源: Laya2.0_示例 发布时间: 20251209

193. dialog设置缩放问题 [ 84%]

...scaleH) >> 1) + dialog.pivotX);  dialog.y = Math.round(((Laya.stage.height - dialog.height * dialog.scaleH) >> 1) + dialog.pivotY);   希望官方能优化一下!!感谢 2018-11-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...

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

194. laya.html.HtmlImage_API3.0 [ 84%]

...HtmlObject Index Constructors constructor Properties obj Accessors element height width Methods create destroy pos release Constructors constructor new HtmlImage(): HtmlImage Defined in laya/html/HtmlImage.ts:12 Returns HtmlImage Properties Readonly obj obj: Sprite Defined in laya/html/HtmlImage.ts:...

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

195. laya.d3.resource.RenderTexture_API3.0 [ 84%]

...t gammaCorrection gammaSpace generateDepthTexture generateMipmap gpuMemory height id isCube maxMipmapLevel mipmap mipmapCount multiSamples obsolute referenceCount samples width wrapModeU wrapModeV wrapModeW bindCanvasRender cpuMemory currentActive gpuMemory Methods _addReference _clearReference _cre...

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

196. 关于要自定shader的同学 [ 84%]

...截屏当前sprite 的绘制 let new_texture = sprite.drawToCanvas(width, height, 0, 0) 这里的 width 和height 指的是当前的sprite在游戏中设置的大小 new_texture = ls.Texture.create(new_texture, 0, 0)   重新获取纹理然后将textureHost设置为new_texture sprite.shaderValue.te...

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

197. 文本在屏幕不垂直居中 [ 84%]

....color='#ffffff'; tx.fontSize="20"; tx.pos(Laya.stage.width /2 ,Laya.stage.height /2); tx.pivot(tx.width /2 ,tx.height / 2); tx.align="center"; tx.valign="middle"; Laya.stage.addChild(tx); } })()   2017-11-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

198. laya.resource.RenderTexture_API3.0 [ 84%]

...t gammaCorrection gammaSpace generateDepthTexture generateMipmap gpuMemory height id isCube maxMipmapLevel mipmap mipmapCount multiSamples obsolute referenceCount samples width wrapModeU wrapModeV wrapModeW bindCanvasRender cpuMemory currentActive gpuMemory Methods _addReference _clearReference _cre...

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

199. 设置pivot后,精灵位置显示位置不正确 [ 84%]

...stage.bgColor = "#ffffff" this.sp = new Laya.Sprite(); let width = 660 let height = 420 this.sp.size(width, height) this.sp.pivot(Math.round(width / 2), Math.round(height / 2)) this.sp.graphics.drawCircle(0, 0, 5, "#000000") this.sp.graphics.drawRect(-this.sp.pivotX, -this.sp.pivotY, width, height, ...

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

200. this.bitmap.activeResource is not a function [ 84%]

...one = new Laya.Sprite(); } this._openZone.size(Laya.stage.width,Laya.stage.height); if(this._openZone.parent) return; console.log("打开开放域",Laya.Browser.onMiniGame) Laya.stage.addChild(this._openZone); this._openZone.x = vx; this._openZone.y = vy; if(Laya.Browser.onMiniGame){ Laya.Browser.wi...

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