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

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

161. Texture.getPixels在手机真机Native环境中会报错 [ 80%]

...!因为是必现所以没有提供DEMO了   getPixels(xywidthheight) {             if (window.conch) {                 return this._nativeObj.getImageData(xywidthheight); //this._nativeObj为空!             }            ...

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

162. 屏幕适配-缩放-Extract Fit [ 80%]

...teRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_EXTRACT_FIT();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_EXTRACT_FIT { private rect: Sprite; constructor() { Laya.init(550, 400); L...

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

163. 屏幕适配-缩放-Show All [ 80%]

...teRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_SHOW_ALL();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_SHOW_ALL { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.st...

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

164. 【LIST无法拖动】参照官方实例做的 [ 80%]

...    this.hitArea.hit.drawRect(list.x, list.y -100,list.width, list.height, "#000000");         //限制鼠标点击区域                       }     find_StringAllIndex(str :String):String[]{         let pos_arr =[];         for(let i=0;i...

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

165. 微信浏览器,input输入完成后,游戏不能还原 [ 80%]

...这里了,也可以查看附近 window.screenWidth = 1280; window.screenHeight = 720; Laya.init(window.screenWidth, window.screenHeight, laya.webgl.WebGL);  Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER;  Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_HE...

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

166. 【简单跑酷--JS版】---Lv.6 终篇 [ 80%]

...proto = Hp.prototype; _proto.init = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = Laya.loader.getRes("res/en_bar.png"); break; case Hp.HP_TYPE_SPEED: texture2 = Laya.loader.getR...

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

167. laya.display.Sprite [ 80%]

...: Boolean[read-only] 表示是否在显示列表中显示。Node  displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite  displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite  drawCallOptimize : BooleanSprite  filters : A...

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

168. UI-ProgressBar [ 80%]

...x = (Laya.stage.width - progressBar.width) / 2; progressBar.y = Laya.stage.height / 2; progressBar.sizeGrid = "5,5,5,5"; progressBar.changeHandler = new Handler(this, onChange); Laya.stage.addChild(progressBar); Laya.timer.loop(100, this, changeValue); } function changeValue() { if (progressBar.valu...

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

169. SVG渐变精灵的扩展脚本继承了多个精灵, 在safari环境下重叠了渲染 [ 80%]

....1" ';             data += 'viewBox="0 0 ' + this.width + ' ' + this.height + '" ';             // set svg width and height             data += 'width="' + this.width + '" height="' + this.height + '">';             data += '<defs>';             // set gradient...

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

170. laya.html.dom.HTMLIframeElement_API3.0 [ 80%]

...cessors active activeInHierarchy alpha blendMode cacheAs components contextHeight contextWidth customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea href innerHTML is3D mask mouseEn...

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