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

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

111. 如何动态绘制自定义模型? [ 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

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

113. 解决游戏最小化退到后台后浏览器会强制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

114. 关于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

115. 分享一个自己做的游戏公告功能,跑马灯效果 [ 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

116. 鼠标交互-修正交互区域 [ 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_示例 发布时间: 20240930

117. 请问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

118. 编译常量问题 [ 78%]

...时间东八区,故服务器时间要加多八小时   public static const TIME_ZONE:Number = 8*60*60*1000;   /**    * 一天    */   public static const ONE_DAY2:Number = 24 * 60 * 60 * 1000; //  ONE_DAY  可能系统重名   在运行时发现 var millSec:Number = (ServiceTimeMagr.i...

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

119. laya3d 场景重复添加3d物体报错,必现! [ 78%]

...不要用,把SubMeshDyamicBatch的下面常量设置为0 public static const maxAllowVertexCount:int = 10;         /** @private */         public static const maxAllowAttribueCount:int = 900;//TODO:         /** @private */         public static const maxIndicesCount...

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

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

...t = 5, vx = 0, vy = 0, targetPosition; class InputDevice_GluttonousSnake { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Event = Laya.Event, Accelerator = Laya.Accelerator; // 不支持WebGL时自动切换至Canvas Lay...

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