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

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

1. laya.net.Loader_API3.0 [ 100%]

...ogressCallback Returns Promise<void> off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...

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

2. Laya.class底层原理是什么 [ 96%]

... 个回复 wudi199553 赞同来自: class   ()  方法 public static function class(functionRef:Function, fullQulifiedName:String, superClass:Function, miniName:String):void 在JS中,通过Laya.class来定义类,同时可以指定其继承关系。   参数   functionRef:Function — ...

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

3. 其他 · LayaAir3.4 · 引擎文档 · LAYABOX [ 93%]

...数默认在config.js中定义,代码如下: window.onLayaInitError = function(e) { console.log("onLayaInitError error=" + e); alert("加载游戏失败,可能由于您的网络不稳定,请退出重进"); } 开发者可以根据自己需求,修改报错信息和报错方式。 9. conch.ge...

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

4. tiledMap tileSetId是什么 [ 86%]

tiledMap tileSetId是什么 getTileProperties () method public function getTileProperties(index:int, id:int, name:String):* 得到tile自定义属性 Parameters index:int — 地图块索引 id:int — 具体的TileSetID name:String — 属性名称 这个api怎么用?tileSetId是什么 2018-01-2...

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

5. domParser在哪儿 [ 84%]

...          */         public static var parseXMLFromString:Function = function(value:String):XmlDom {             var rst:*;             value = value.replace(/>\s+</g, '><');             __JS__("rst=(new DOMParser()).parseFromString(val...

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

6. [LayaAirIDE3]xcode切入切出声音不播放 [ 83%]

...ls/JsonTool"; import { ResourceManager } from "./ResourceManager"; declare function testmusic_cn_ios(accountId: string): void; enum SoundType {     BGM,     Effect,     Dialogue, } export class SoundManager {     private static instance: SoundManager;     private curBGMUrl: string;     p...

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

7. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 81%]

...seEnabled = true; a.mouseThrough = true; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void {     console.log("touch a"); } 因为需要将mouseThrough=true才可以,蛋疼的api描叙你能相信是这个熟悉么? “mouseThrough : Boolean = false,指定当mouseEnabled=true...

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

8. 说的的新版本更新的问题呢 [ 81%]

...定问题1已经修复了吗?我看代码还是重写了substr __substr:function(ofs,sz){return arguments.length==1?Laya.__presubstr.call(this,ofs):Laya.__presubstr.call(this,ofs,sz>0?sz:(this.length+sz));},   String.prototype.substr=Laya.__substr; 请你们自己检测一下   我举个例...

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

9. Laya.Pool.recover("people", p)是什么意思? [ 79%]

...赞同来自: 遇到问题多查下APIPool recover () 方法 public static function recover(sign:String, item:Object):void 将对象放到对应类型标识的对象池中。 参数 sign:String — 对象类型标识字符。 item:Object — 对象。 2016-09-21 0 1 分享 微博 QZONE 微信 laya_t...

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

10. 微信小游戏提审后,提示说代码侵权 [ 79%]

...那些基类、工具类里面的方法顺序, 举例 Class A里面有 Function B、C、D,在不同项目里面改乱顺序,项目1里面的 Class A中顺序是B、D、C;项目2里面的 Class A中顺序是D、C、B; 4、如果定义了 package包名,包名也改掉; 5、每个类里...

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