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

大约有 2,610 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0059 秒)

981. 导出微信小游戏代码报错gameThirdScriptError [ 67%]

...gameThirdScriptError (unknown) gameThirdScriptError Cannot read property 'events' of undefined TypeError: Cannot read property 'events' of undefined     at Function.EventDispatcher.__init$ (http://127.0.0.1:52880/game/code.js:630:29)     at http://127.0.0.1:52880/game/code.js:14:71     at Arra...

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

982. LoginView.super(this);这样调用的父类的构造函数的方法,不能用吗 [ 67%]

...w = function () {     LoginView.super(this);     this.btnReg.on(Laya.Event.CLICK, null, function () {         console.log("on btReg event")     }); } 目前编辑的代码辅助,好像还是无法获得父类的成员变量比如 btnReg。这是视频提到的一个ide的功能bug ...

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

983. laya.device.motion.Gyroscope [ 67%]

... Packagelaya.device.motionClasspublic class GyroscopeInheritanceGyroscope EventDispatcher Object 使用Gyroscope.instance获取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):voi...

来源: Laya2.0_api 发布时间: 20190513

984. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 67%]

...ar sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,this.completeHandler); xhr.once(Laya.Event.ERROR,this,this.errorHandler); xhr.send("res/a.png","","get","arraybuffer"); } private completeHandler(data:Object):void{ //加载完成返回的data是arraybuffe...

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

985. 请问node 在destroy的时候 不发出事件是否有什么特殊原因吗 [ 67%]

...ree 赞同来自: //开启节点destroy 事件 LayaPatch.Enable_NodeDestroyEvent = function(){ var oldDestroy = Laya.Node.prototype.destroy; Laya.Node.prototype.destroy = function(){ this.event('destroy'); oldDestroy.call(this); } } 2017-11-20 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞...

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

986. 请问2.0中js怎么加天空盒子或穹顶,官网例子运行报错。 [ 67%]

...14313) at Loader.Laya3D._onTextureCubeLtcLoaded (libs/laya.d3.js:14656) at EventHandler.__proto.runWith (libs/laya.core.js:1400) at Loader.__proto.event (libs/laya.core.js:1156) at Loader.__proto.complete (libs/laya.core.js:16348) at Loader.__proto.onLoaded (libs/laya.core.js:16316) at EventHandler....

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

987. 鼠标事件:为什么没有设置穿透,也会发生穿透现象? [ 67%]

...             this.addChild(bg2);             bg2.on(laya.events.Event.MOUSE_DOWN,this,test); } ================== public static function createSprite(url:String,c:Boolean = false):Sprite {             var sp:Sprite = new Sprite();             sp.loadImage(url); ...

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

988. QQ玩一玩 API 中没有 BKLaya.tools.BinaryLoader 的定义 [ 67%]

...序API dialog 自定义关闭效果,效果执行完,弹窗无法关闭 event自定义事件的问题 写了个边缘光的自定义shader,有很多问题,帮忙看一下 layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执行。 请问如何使我的自定义类...

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

989. 如何获取实时更新的动态数据,数据在文本中 [ 67%]

....create(this,this.Onloaded),null,Laya.Loader.TEXT,0,true,null,true);*/ let event1=Laya.loader.load("eyeimf.txt", Laya.Handler.create(this, this.Onloaded), null, Laya.Loader.TEXT,0,true,null,true); //console.log(Laya.Loader.loadedMap); } 另外就是加载的时候,不缓存资源,就不能读取...

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

990. 请问:Ts下如何实现打开照相机和系统图库的方法?IOS和Android [ 67%]

...         Laya.stage.addChild(button);         button.on(laya.events.Event.CLICK,this,function () {             let photo = laya.utils.Browser.getElementById("photo");            photo.click();         });     } } new GameMain(); 为什么 click事件没...

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