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

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

91. 鼠标交互-修正交互区域 [ 89%]

...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, 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() { this.buildWorl...

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

92. 真机测试时 有3d模型的界面尺寸就会错乱 [ 89%]

...modelPnl.localToGlobal(new Laya.Point(this._modelPnl.width, this._modelPnl.height))         let w = x2 - x         let h = y2 - y         let bounds = new Laya.Rectangle(x, y, w, h)          let view = new ModelView(bounds, 130, 6, 65)         this._modelPnl.addCh...

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

93. laya.html.HtmlLink_API3.0 [ 89%]

...ents IHtmlObject IHitArea Index Constructors constructor Accessors element height width Methods addRect contains create destroy pos release resetArea Constructors constructor new HtmlLink(): HtmlLink Defined in laya/html/HtmlLink.ts:14 Returns HtmlLink Accessors element get element(): HtmlElement De...

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

94. 分享,扩展Laya.Text组件实现简单的富文本 [ 89%]

...g = this.padding; var startX = padding[3]; var textAlgin = "left"; var lineHeight = this.leading + this._charSize.height; var tCurrBitmapFont = this._currBitmapFont; if (tCurrBitmapFont) { lineHeight = this.leading + tCurrBitmapFont.getMaxHeight(); }; var startY = padding[0]; if (this._height > 0...

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

95. Text的中划线(删除线) [ 88%]

...               }             y+=this._charSize.height;             this._graphics.drawLine(x,y,x+lineWidth,y,this.underlineColor || this.color,1);         } y  如果  y+=this._charSize.height/2;  就是中划线  可以自己加个变量 控制 例...

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

96. 动画-图集动画 [ 88%]

...// 不支持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"; Laya.loader.load(aniConfPath, Laya.Handler.create(thi...

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

97. 原生js传图片給laya的sprite,怎么设置其等比缩小? [ 88%]

...小? _pic是原生js的图片url,$pic是sprite,然而以下写$pic.height = 246;无效,加载后的图片还是100%显示,$pic.loadImage(_pic, 14, 192, 0, 0, Handler.create(this, function(){     $pic.height = 246;     $pic.scaleX = $pic.scaleY;     trace("$pic.width:" + $pic.width); ...

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

98. WebGL: INVALID_VALUE: texImage2D: width or height out of range [ 88%]

WebGL: INVALID_VALUE: texImage2D: width or height out of range 这个出现的非常突然,会不会有什么问题? 附件 : --> 2017-11-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达...

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

99. 滤镜-模糊滤镜 [ 88%]

...// 不支持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"; Laya.loader.load(apePath, Laya.Handler.create(this, t...

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

100. laya.d3.resource.RenderTexture [ 88%]

...nly] 纹理格式 BaseTexture  frameBuffer : *[read-only] RenderTexture height : int[read-only] 获取高度。 BaseTexture magFifter : int 放大过滤器 BaseTexture minFifter : int 缩小过滤器 BaseTexture mipmap : Boolean 是否使用mipLevel BaseTexture repeat : Boolean 是否使用...

来源: laya_api 发布时间: 20170929