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

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

1. Laya.class底层原理是什么 [ 100%]

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

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

2. tiledMap tileSetId是什么 [ 89%]

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

3. domParser在哪儿 [ 87%]

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

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

4. [LayaAirIDE3]xcode切入切出声音不播放 [ 87%]

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

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

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

6. 说的的新版本更新的问题呢 [ 84%]

...定问题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

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

...赞同来自: 遇到问题多查下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

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

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

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

9. 将字节数组转为图片 [ 82%]

... Handler.create(this, byteLoadComplete,[url]),null,Loader.BUFFER); private function byteLoadComplete(url:String):void {             var buffer:ArrayBuffer = Laya.loader.getRes(url);             var byte:Byte = new Byte(buffer);             byte.writeArrayBuffer(buffer, 4);...

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

10. 分享个用美术资源做位图文本的方法。。。 [ 78%]

...":"res/playerKpiFont.png","type":Laya.Loader.IMAGE}],new Laya.Handler(that,function(){ var jsonData = Laya.loader.getRes("res/playerKpiFont.json"); var imageData = Laya.loader.getRes("res/playerKpiFont.png"); // 左中右创建的3个实例 var bp = new BPFont(jsonData,imageData,600,"left"); var bp1...

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