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

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

851. Laya_API3.0 [ 66%]

... init(stageConfig?: IStageConfig): Promise<void> init(width: number, height: number, ...plugins: any[]): Promise<void> Defined in Laya.ts:73 初始化引擎。使用引擎需要先初始化引擎,否则可能会报错。 Parameters Optional stageConfig: IStageConfig Returns Promise<...

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

852. dialog的lock属性没出现 [ 66%]

...ogCenterClose { private const DIALOG_WIDTH:int = 220; private const DIALOG_HEIGHT:int = 275; private const CLOSE_BTN_WIDTH:int = 43; private const CLOSE_BTN_PADDING:int = 5; private var assets:Array; public function DialogCenterClose() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, ...

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

853. 在开放数据域/子域里list滑动事件偏移,重设矩阵没有用 [ 66%]

....sharedCanvas.width = message.data.width; Laya.Browser.window.sharedCanvas.height = message.data.height; var tempMatrix = message.data.matrix; var matrix = new Laya.Matrix(); matrix.a = tempMatrix.a; matrix.b = tempMatrix.b; matrix.c = tempMatrix.c; matrix.d = tempMatrix.d; Laya.stage._canvasTransfo...

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

854. 鼠标交互-双指旋转(多点触控) [ 66%]

...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"; setup(); })(); function setup() { createSprite(); Laya.stage.on...

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

855. 屏幕适配模式选择scale_exactfit的话ui中的top,bottom,left,right怎么会无效啊? [ 66%]

...根据屏幕长宽比,自动选择使用SCALE_FIXED_WIDTH或SCALE_FIXED_HEIGHT*/ static SCALE_FIXED_AUTO: string; 2017-10-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 浪货界扛把子 相关问题 【屏幕适配】在LayaAir上...

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

856. laya里的所有单例都没有初始值 [ 66%]

... if (window["Laya3D"]) window["Laya3D"].init(GameConfig.width, GameConfig.height);             else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]);             trace("Laya.stage",Laya.stage,"Laya.timer",Laya.timer,"Laya.loader",Laya.loader)          ...

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

857. worker.js 使用问题 [ 66%]

...       /*__JS__ */bitmap=HTMLImage.create(imageData.width,imageData.height,1);             /*__JS__ */bitmap.loadImageSource(imageData);             /*__JS__ */bitmap._setCreateURL(data.url);         } else {             bitmap = new HTMLCanvas(true...

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

858. 升级到2.0后.原本用字符串索引module内的函数,发现不行了, 求指教 [ 66%]

...解决,  if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height);         else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]);         Laya["Physics"] && Laya["Physics"].enable();         Laya["DebugPanel"] && Laya["DebugPanel"]....

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

859. 更新到1.7.6beta之后,HBox有bug [ 66%]

...; var img: laya.ui.Image = new laya.ui.Image(skin); s.width = img.width; s.height = img.height; s.addChild(img); hbox.addChild(s); } Laya.stage.addChild(hbox); } 2017-06-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 ...

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

860. laya.ui.Component [ 66%]

...: Boolean[read-only] 表示是否在显示列表中显示。Node  displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component  displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component filters : Array滤镜集合。可以设置...

来源: laya_api 发布时间: 20170929