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

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

141. 使用百度地图 · LayaAir3.0文档 · LAYABOX [ 85%]

...度地图的div容器 二、接着是构造函数: constructor() { Laya.init(1, 1); this.init(); // 使用高精度位置 Laya.Geolocation.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); // 绑定co...

来源: Laya3.0_文档 发布时间: 20230727

142. qq小游戏使用开放域添加排行榜,界面不显示 [ 85%]

...亮真扁 • 2020-01-15 13:47 哦,对了,主域里面Laya.MiniAdpter.init(true,false)被我替换成 if (Laya.Browser.onMiniGame) { Laya.MiniAdpter.init(true,false); }else if(Laya.Browser.onQQMiniGame){ //Laya.MiniAdpter.init(true,false); Laya["QQMiniAdapter"].init(true, false); } 开...

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

143. Error: No such module: atom_renderer_v8_util [ 85%]

...的模块无法使用,其他地方使用会报错 LayaAirIDE2.2 - Laya3D init error ,must support webGL Laya3D init error, must support webgl有个WIN10的电脑,系统是正版,家庭版的,跳到编辑模式就显示这个 Error: asBitmap no size! IDE不能运行调试提示:Chrome error...

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

144. 使用百度地图显示当前位置(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 85%]

...构造函数: ```typescript class WatchPosition { constructor() { Laya.init(1, 1); this.init(); // 使用高精度位置 Laya.Geolocation.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); // 绑定c...

来源: Laya2.0_文档 发布时间: 20210714

145. laya.d3.core.render.posteffect.GaussianDoF_API3.0 [ 85%]

...ctors constructor Accessors active farEnd farStart maxRadius Methods effectInit release render init Constructors constructor new GaussianDoF(): GaussianDoF Overrides PostProcessEffect.constructor Defined in laya/d3/core/render/PostEffect/GaussianDoF.ts:147 实例化一个高斯DOF效果类 Returns G...

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

146. 做了一个最简单的显示微信子域的程序,但是报错Cannot read property 'USER_DATA_PATH' of undefined [ 84%]

...n.MiniFileMgr.setNativeFileDir (laya.wxmini.js:615) at Function.MiniAdpter.init (laya.wxmini.js:33) at Function.MiniAdpter.enable (laya.wxmini.js:19) at Function.Browser.__init__ (laya.core.js:8643) at Object.Laya.init (laya.core.js:252) at new Main (Main.js:6) at Object.2../GameConfig (Main.js:37) ...

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

147. 输入设备-指南针 [ 84%]

...at, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(700, 1024, 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(compassImgPath, Handler.crea...

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

148. 适配模式在 showall 模式下火狐(PC)的sizeGrid 特别容易出现间隙 [ 84%]

...ction() { // 不支持WebGL时自动切换至Canvas             Laya.init(550, 400);             // Laya.init(550, 400);             Laya.stage.alignV = Stage.ALIGN_MIDDLE;             Laya.stage.alignH = Stage.ALIGN_CENTER;             Laya.stage.scaleMode = "showall";...

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

149. laya.layagl.QuickTestTool_API3.0 [ 84%]

...ructors constructor Properties _renderType _repaint _x _y Methods render __init__ enableQuickTest getMCDName showCountInfo showRenderTypeInfo Constructors constructor new QuickTestTool(): QuickTestTool Defined in laya/layagl/QuickTestTool.ts:64 Returns QuickTestTool Properties _renderType _renderTyp...

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

150. 输入设备-贪吃蛇(重力感应) [ 84%]

...; function Segment(width, height) { Segment.super(this); Segment.prototype.init = function() { this.graphics.drawRect(-height / 2, -height / 2, width + height, height, "#FF7F50"); } // 获取关节另一头位置 Segment.prototype.getPinPosition = function() { var radian = this.rotation * Math.PI / ...

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