大约有 538 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0048 秒)
Laya_社区(426) Laya2.0_文档(37) Laya3.0_文档(22) Laya2.0_示例(12) Laya_示例(11) laya_api(11) Laya3.0_api(10) Laya2.0_api(9)
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
扩展脚本问题,麻烦帮看下 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
...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
...,有没有在文档醒目的位置提醒开发者啊。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
...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
...了 以下附上代码 : (function () { 'use strict'; class GameMain extends Laya.Scene { constructor(){ super(); GameMain.instance = this; Laya.MouseManager.multiTouchEnabled = false; thi...
来源: Laya_社区 发布时间: 20201110
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
编译的时候报错 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
...,用于常规的资源 */}); 完整的脚本示例如下: 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
...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