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

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

121. 输入设备-指南针 [ 78%]

...eesText, directionIndicator, firstTime = true; class InputDevice_Compass { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(700, 1024, WebGL); Laya.stage.alignV = Stage....

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

122. UI-Input [ 78%]

...); //加载资源。 })(); function onLoadComplete() { for (var i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgCo...

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

123. 滤镜-发光滤镜 [ 78%]

...发更高效。let apePath = "res/apes/monkey2.png"; class Filters_Glow { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stag...

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

124. laya.display.Stage [ 78%]

...ses | Index | Frames No Frames StageProperties | Methods | Events | Constants Packagelaya.displayClasspublic class StageInheritanceStage Sprite Node EventDispatcher Object Stage 是舞台类,显示列表的根节点,所有显示对象都在舞台上显示。通过 Laya.stage 单例访问...

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

125. 如何动态绘制自定义模型? [ 78%]

...umber>, faceArr: Array<number>, normalArr: Array<number>) { const verticeArr = new Array<number>(); for (let i = 0; i < vertArr.length; i += 3) { verticeArr.push(vertArr[i], vertArr[i + 1], vertArr[i + 2]); verticeArr.push(normalArr[i], normalArr[i + 1], normalArr[i + 2]); } ...

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

126. 解决游戏最小化退到后台后浏览器会强制1秒执行一次ILaya.stage._loop() [ 78%]

...&& typeof Atomics !== 'undefined') {             const nil = new Int32Array(new SharedArrayBuffer(4))             // also filters out NaN, non-number types, including empty strings, but allows bigints             const valid = ms ...

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

127. 关于ios下的错误 [ 78%]

...:executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 420 20 JavaScriptCore JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, JSC::JSValue*) + 92 21 WebCor...

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

128. 分享一个自己做的游戏公告功能,跑马灯效果 [ 78%]

...span>                          </span>" constructor() { super() this.width = 1200 this.height = 55 this.visible = false this.pos(565,150) this._createHorn() this._createBg() this._createView() this.on(Laya.Event.UNDISPLAY,this,this.stop) this.on(Laya.Event.DISPLAY,...

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

129. 鼠标交互-修正交互区域 [ 78%]

...目开发更高效。let logger; class Interaction_FixInteractiveRegion { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, Web...

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

130. 请问layabox对TV端支持的如何? [ 78%]

...合模式有限: 1、滤镜 /**@private 模糊滤镜。*/ public static const BLUR:int = 0x10; /**@private 颜色滤镜。*/ public static const COLOR:int = 0x20; /**@private 发光滤镜。*/ public static const GLOW:int = 0x08; 2、混合模式 ["normal", "add", "multipl...

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