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

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

41. Texture自动恢复还是存在另外的问题 [ 79%]

...还是存在另外的问题 laya.resource.Texture类 __proto.recoverBitmap=function(){        var _$this=this;         var url=this._bitmap.url;         if (!this._destroyed && (!this._bitmap || this._bitmap.destroyed)&& url){             Laya.loader.load(u...

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

42. 获取的ui页面里下on事件无法触发 [ 78%]

...ui页面里下on事件无法触发 类代码如下: var GameStartView = function () { GameStartView.super(this); this.Start.on(Laya.Event.CLICK, this, this.open); console.log(this.Start); GameStartView.prototype.open = function(){ console.log("Open is ok"); } }; Laya.class(GameStartView,"GameStart...

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

43. 小游戏环境下 声音的缓存机制导致更换声音文件失败 [ 78%]

...更换声音文件失败 在wxmini中关于声音的管理 __proto.load = function (url) {             url = URL.formatURL(url);             this.url = url;             this.readyUrl = url;             if (MiniSound._audioCache[this.readyUrl]) {    ...

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

44. 求助高手请进,关于场景导入的问题~ [ 78%]

...Scene_01/loveScene.ls",Handler.create(this,this.completeHandler)); private function completeHandler():void{     var scene:Scene = Laya.loader.getRes("LayaScene_01/loveScene.ls");     Laya.stage.addChild(scene); }   我现在的问题是,我创建一个继承Scene的类,在这个类里边我...

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

45. 位图字体ide无法注册 [ 78%]

...pFont.loadFont("res/bitmapFont/test.fnt",new Laya.Handler(this,onLoaded)); function onLoaded(){ init(); } function init(){ Laya.Text.registerBitmapFont(this.mFontName,this.mBitmapFont); } 2018-03-29 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...

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

46. ts怎么调用input file弹框选择本地文件 [ 78%]

... <input type="file" id="file"> <script type="text/javascript"> function openFile(){ document.getElementById("file").click(); }   ts里调用 openFile() 弹不出文件选择框 请问该用什么方法   2017-07-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

47. 预加载音频文件遇到的问题 [ 78%]

...ya.Handler.create(this, onLoadedSound), null, Laya.Loader.SOUND); // })(); function onLoadedSound(){ Laya.SoundManager.playMusic("res/sound/bloodstream_bg.mp3", 0, Laya.Handler.create(this, onComplete)); } function onComplete(){ console.log("播放完成"); } 运行能正常运行但是控制台提...

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

48. drawToCanvas真机资源无法释放 [ 77%]

...ayObject.height, 0,0); htmc.destroy(); --------》     __proto.destroy=function(){         this._ctx && this._ctx.destroy();         this._ctx=null;     } 在这里,this.ctx并没有destroy方法,native上直接崩溃 2018-12-19 0 1 分享 微博 QZONE 微信 为...

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

49. 限制区域拖动效果,为什么会无法限制呢? [ 77%]

...ndler = Laya.Handler; var WebGL = Laya.WebGL; var Handler = Laya.Handler  function GolfMainUI() { GolfMainUI.super(this)  var dragRegion; showDragRegion(); this.golfBall.x = Laya.stage.width / 2; this.golfBall.y = Laya.stage.height / 2; this.golfBall.on(Event.MOUSE_DOWN, this, onStartDrag)  funct...

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

50. worker的问题 [ 77%]

... use the 'new' operator, this DOM object constructor cannot be called as a function." 2018-01-08 0 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 还要在index.html中写啊,我以为在as3脚本里写就行了? 2018-01-08 0 1 分享 微博 QZONE 微信 fool_tiger 赞同来自: 可以调...

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