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

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

131. laya的drawToTexture太坑 [ 83%]

...getSelfBounds(); let texture = view.drawToTexture(bounds.width, bounds.height, -bounds.x + view.x, -bounds.y + view.y) as laya.resource.Texture; shadow.graphics.drawTexture(texture, bounds.x, bounds.y, bounds.width, bounds.height, null, 0.3); shadow.pos(view.x, view.y); view.parent.ad...

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

132. laya.display.cmd.FillTextureCmd [ 83%]

...illTextureCmd Object 填充贴图 Public Properties PropertyDefined By  height : Number (可选)高度。 FillTextureCmd  offset : Point (可选)贴图纹理偏移 FillTextureCmd  texture : Texture 纹理。 FillTextureCmd  type : String (可选)填充类型 repeat|repeat-x|repe...

来源: Laya2.0_api 发布时间: 20190513

133. Text的中划线(删除线) [ 83%]

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

134. 滤镜-发光滤镜 [ 82%]

...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, setup)); })(); f...

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

135. laya.display.cmd.DrawTextureCmd [ 82%]

...滤镜。 DrawTextureCmd  colorFlt : ColorFilter = nullDrawTextureCmd  height : Number (可选)高度。 DrawTextureCmd  matrix : Matrix (可选)矩阵信息。 DrawTextureCmd  texture : Texture 纹理。 DrawTextureCmd  width : Number (可选)宽度。 DrawTextureCmd  x : Nu...

来源: Laya2.0_api 发布时间: 20190513

136. 解决fitDOMElementInArea在ios下不能正常显示 [ 82%]

...     Utils.fitDOMElementInArea=function(dom,coordinateSpace,x,y,width,height){         if (!dom._fitLayaAirInitialized){             dom._fitLayaAirInitialized=true;             dom.style.transformOrigin=dom.style.webKittransformOrigin="left top"; 修改为:dom....

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

137. 动画-SWF动画 [ 82%]

...// 不支持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"; this.createMovieClip(); } createMovieClip() { const M...

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

138. 屏幕适配-缩放-No Scale [ 82%]

...ction updateRectPos() { rect.x = Laya.stage.width / 2; rect.y = Laya.stage.height / 2; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOSCALE { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NO...

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

139. 屏幕适配-缩放-No Border [ 82%]

...ction updateRectPos() { rect.x = Laya.stage.width / 2; rect.y = Laya.stage.height / 2; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOBORDER { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_N...

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

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

...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"; setup(); })(); function setup() { var vGap = 100; but...

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