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

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

701. 分包后, 资源加载问题 [ 91%]

...添加到舞台显示 Laya.loader.load("js/loading100.js", Handler.create(this, complete), null, Loader.TEXT); } private function complete(data:*):void { trace("ok3") __JS__("window.eval(data)"); //此行报错 var load:* = __JS__('new loading100()'); Laya.stage.addChild(load); trace("loading100..."...

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

702. 微信小游戏api 调用 wx前会自动加this 希望官网给解决一下 [ 91%]

微信小游戏api 调用 wx前会自动加this 希望官网给解决一下 可以吗 2018-05-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 描述具体一点。 这个标题语义不...

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

703. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 91%]

...roup=Resource&name=GarbageCollection)) ```typescript function(e:Event) { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不...

来源: Laya2.0_文档 发布时间: 20210715

704. 网格像素线 · LayaAir3.3 · 引擎文档 · LAYABOX [ 91%]

... */ constructor(maxCount: number = 2, name: string = null) { super(name); this._render = this.addComponent(PixelLineRenderer); this._geometryFilter = (this._render as PixelLineRenderer)._pixelLineFilter; (this._render as PixelLineRenderer).maxLineCount = maxCount; let material = this._render.materia...

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

705. 怎么集成导入mqtt.js到laya中 [ 91%]

...ient: Paho.MQTT.Client; private message: Paho.MQTT.Message; private self = this; public constructor() { public connect(url, port, client): void { //初始化 this.client = new Paho.MQTT.Client(url, Number(port), client); // set callback handlers //连接消失 收到消息 this.client.onConnectionLo...

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

706. 超过最大调用堆栈大小 [ 91%]

...      output = socket.output;         socket.on(Event.OPEN, this, this.onSocketOpen);         socket.on(Event.CLOSE, this, this.onSocketClose);         socket.on(Event.MESSAGE, this, this.onMessageReveived);         socket.on(Event.ERROR, this, this.onConnectErr...

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

707. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 91%]

...rite { private _boll1:Laya.Sprite; constructor() { super(); //物理模块 this._boll1 = new Laya.Sprite(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_close.png'); let box:laya.physics.BoxCollider = this._boll1.addComponent(laya.physics.BoxCollider); box.height =...

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

708. socket通讯返回数据 [ 91%]

...a.Byte; constructor() { //初始化引擎 Laya.init(600, 400, Laya.WebGL); this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this...

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

709. 给模型动态添加脚本报错 [ 91%]

...s3D/prefabsModel/hanbao.lh");                 goldNode = this.scene_3d.addChild(sp);                 goldNode.transform.localPosition = new Laya.Vector3(this.startPos.x + (4.5 - Math.random() * 9), this.startPos.y, this.startPos.z + (2.5 - Math.random...

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

710. Laya调用wx接口,导出时总是多出一个this [ 91%]

Laya调用wx接口,导出时总是多出一个this 比如在一个类里写wx.login({...}),导出后就变成this.wx.login({}),然后就会出错得把this去掉。请问怎么解决这问题- -,手动删除么就... 2018-07-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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