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

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

1. js飞机大战报错 请大神看看 [ 100%]

...l=null;          this.infoLabel=null; GameInfo.js: var GameInfo = (function (_super) {     function GameInfo() {         GameInfo.super(this);         // this.infoLabel.text = "abc"; 这个也报异常应该是找不到infoLabel         // 注册按钮点击事件 点击后暂...

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

2. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 89%]

...aya.stage.addChild(new TabUI()) this.getGold.on(Laya.Event.MOUSE_DOWN,this,function(){ console.log("点击事件") }) // console.log(this.getGold) } } new Main() Laya_Aaron • 2017-12-13 17:09 getGold 哪定义的呢 xdkaka • 2017-12-13 17:17 上面图片截图了,是在UI编辑模式...

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

3. String转XMLDom的问题 [ 88%]

String转XMLDom的问题 public static function stringToXMLDom(value:String):XmlDom { var xml:XmlDom; /*[IF-SCRIPT-BEGIN] if(document.all) {   xml=new ActiveXObject("Microsoft.XMLDOM");   xml.loadXML(value); } else { xml = new DOMParser().parseFromString(value, "text/xml"); } [IF-SCRIPT-END...

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

4. playSound和playMusic结束时候有异常抛出 [ 86%]

...mp3") 3. 声音播放完成后,系统抛出异常__proto._tryClearBuffer=function(sourceNode){ try {sourceNode.buffer=WebAudioSound._miniBuffer;}catch (e){WebAudioSoundChannel._tryCleanFailed=true;} } 求解,谢谢 2017-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

5. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 84%]

..._scene.lightCullingMask && this._scene.lightCullingMask instanceof Function){this._scene.lightCullingMask(scene,this);} 3、对想要开启灯光裁剪的场景调用 LightCullingMask.enableLightCullingMask(scene3d)即可 //注意 ExtCullingMask并不是针对对象进行,而是对摄相...

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

6. 针对2.0.0 beta5 setLoadingPage 做增强 [ 83%]

...e((resolve, reject) => { Laya.Scene.load(url, Laya.Handler.create(this, function (scene) { // setLoadingPage为null 是为了避免引擎加载完场景自动关闭loadingPage Laya.Scene.setLoadingPage(null) resolve(scene) }), progress) }) } _promiseHandler() { return new Promise((resolve, reject...

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

7. LayaAir中字符串转xml [ 81%]

...3 浏览: 1254 关注: 2 人 yurong3000 • 2017-02-21 10:55 public static function stringToXMLDom(value:String):XmlDom { var xml:XmlDom; /*[IF-SCRIPT-BEGIN] if(document.all) {   xml=new ActiveXObject("Microsoft.XMLDOM");   xml.loadXML(value); } else { xml = new DOMParser().parseFr...

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

8. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 80%]

...sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? (function(){ // 配置数据 var data = configJSON; // 目标等级 var target = { "tower":{"level":1}, "aeroboat":{"level":1}, "mountain":{"level":1}, "statue":{"level":1}, "angel":{"level":1} }; var towerLel = target.tower.lev...

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

9. 示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function [ 78%]

...示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function $ adb shell am start -n "com.layabox.game/demo.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D Waiting for application to come online: com.layabox.game.test | com.layabox.game Conne...

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

10. socket大型项目回调 [ 72%]

...hakeCallback:any = null; private handshakeBuffer:any; private initCallback:Function = null; private _callbacks:any = {}; private reqId:number = 0; private _package:IPackage; private _message:IMessage; constructor(){ if(!console.group){ console.group = console.log; console.groupEnd = function(){conso...

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