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

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

31. D.TS访问问题 [ 82%]

D.TS访问问题 declare module common_lib{ class ByteArray extends com.tengxun.utils.ByteArray{} class ParserUtil extends com.utlis.ParserUtil{} class MathR extends com.utlis.MathR{} } 我是仿照layaAir.d.ts来写的,这些代码上面还有ByteArray这些类的declare。奇怪的是: declar...

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

32. 扩展脚本问题,麻烦帮看下 [ 81%]

扩展脚本问题,麻烦帮看下  module game { export class testbox extends Laya.Box { constructor(){ super(); console.log(this.getChildByName('btnName')) } } export class testImg extends Laya.Image { constructor(){ super(); console.log(this.getChildByName('name')) console.log(this) } } } 我...

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

33. 用模块器报错,真机不会有这个问题,具体看补充 [ 81%]

...e=53KB, data=39KB I/art: Increasing code cache capacity to 256KB W/System: ClassLoader referenced unknown path: /data/app/com.layademo-1/lib/x86           [ 02-16 02:37:06.759  1874: 1874 D/         ]           >>>>>>>>>>>>>>>>>>&g...

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

34. 编译前(AS)和编译后(JavaScript)程序的行为是不一致的,求最佳实践和原理。 [ 80%]

...,有没有在文档醒目的位置提醒开发者啊。package { public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var func:Function = new A().method; func(); } } } package { public class A { private var _attr:int = 123; public function A() { } public...

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

35. laya.net.ResourceVersion_API3.0 [ 80%]

...nals Only exported Menu Globals "laya/net/ResourceVersion" ResourceVersion Class ResourceVersion 资源版本的生成由layacmd或IDE完成,使用 ResourceVersion 简化使用过程。 调用 enable 启用资源版本管理。 Hierarchy ResourceVersion Index Properties FILENAME_VERSION FOLDER_VER...

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

36. Maximum call stack size exceeded [ 80%]

...了   以下附上代码 : (function () {     'use strict';       class GameMain extends Laya.Scene {         constructor(){             super();               GameMain.instance = this;               Laya.MouseManager.multiTouchEnabled = false;               thi...

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

37. Timer Handler被覆盖 [ 80%]

Timer Handler被覆盖   class Timer   _getHandler(caller, method) { var cid = caller ? caller.$_GID || (caller.$_GID = ILaya.Utils.getGID()) : 0; var mid = method.$_TID || (method.$_TID = (Timer._mid++) * 100000); return this._map[cid + mid]; }   当游戏玩的功能多时间长了,随着cal...

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

38. 编译的时候报错 [ 80%]

编译的时候报错 Undefined symbols for architecture arm64:   "_OBJC_CLASS_$_conchConfig", referenced from:       objc-class-ref in GameReadingViewController.o   "_OBJC_CLASS_$_conchRuntime", referenced from:       objc-class-ref in GameReadingViewController.o   "_OBJC_IVAR_$_conch...

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

39. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 80%]

...,用于常规的资源 */}); 完整的脚本示例如下: const { regClass, property } = Laya; @regClass() export class LoaderDemo extends Laya.Script { onAwake(): void { this.loadTexture("resources/image/monkey2.png", 500);//需要在resources/image放入相应的资源 this.loadTexture("https:...

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

40. 性能测试-卡通人物 [ 80%]

...nt = 100, extraSpace = 50, moveSpeed = 2, rotateSpeed = 2, characterGroup; class PerformanceTest_Cartoon { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas L...

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