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

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

81. 计时器-间隔循环 [ 90%]

...tion() { // 不支持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() ...

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

82. UI-ComboBox [ 90%]

...let cb = this.createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } createComboBox(skin) { const ComboBox = Laya.ComboBox, Handler = Laya.Handler; let comboBox = new ComboBox(skin, "item0,item1,item2,item3,item4,item5"); Laya.stage.addChild(...

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

83. 计时器-延迟执行 [ 90%]

... 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_示例 发布时间: 20260303

84. 性能测试-骨骼 [ 90%]

... mAnimationArray = []; var mFactory; function init() { mSpacingX = Browser.width / colCount; mSpacingY = Browser.height / rowCount; Laya.init(Browser.width, Browser.height, WebGL); Stat.show(); mTexturePath = "../../res/skeleton/" + fileName + "/" + fileName + ".png"; mAniPath = "../../res/skeleton/...

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

85. 性能测试-骨骼 [ 90%]

...= Laya.Loader; // 不支持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(); mSpacingX = Browser.width...

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

86. normalizedViewport修改问题 [ 90%]

...ce){ var vp=this._viewport; var size=this.renderTargetSize; var sizeW=size.width; var sizeH=size.height; this._normalizedViewport.x=vp.x / sizeW; this._normalizedViewport.y=vp.y / sizeH; this._normalizedViewport.width=vp.width / sizeW; this._normalizedViewport.height=vp.height / sizeH; } return this...

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

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

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

88. setSubPixels画布擦除不掉 [ 90%]

...0; this._testStatus = !this._testStatus; // let canvasInfo = this.getCanvasWidthHeight(); let ctx = new Laya.Context(); // let w = canvasInfo.w//tex.width; // let h = canvasInfo.h//tex.height; let w = tex.width; let h = tex.height; ctx.size(w,h); ctx.asBitmap = true; // ctx.clearRect(0,0,w,h); let _...

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

89. 微信小游戏最小化以后,引擎库里面_parseLines报错 [ 90%]

...estWord);             }             this._charSize.width=measureResult.width;             this._charSize.height=(measureResult.height || this.fontSize); 这些会挂,  用的laya2.0 正式版 附件 : --> 2019-04-25 添加评论 免费帖 --> 分享 微博 QZON...

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

90. Sprite-轴心点 [ 90%]

...tion() { // 不支持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"; createApes(); })(); function createApes() ...

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