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

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

541. playSoundplayMusic结束时候有异常抛出 [ 54%]

...der.load("res/music/Music_start.mp3",                      Laya.Handler.create(this, this.onLoadFinished));     }     onLoadFinished()     {         Laya.SoundManager.playMusic("res/music/Music_start.mp3", 1);     } } new GameMain();   ----------------------------------------...

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

542. 多线程Worker · LayaAir3.0文档 · LAYABOX [ 54%]

... //加载引擎需要的资源 Laya.loader.load("../atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例UI界面 var testView:ui.test.TestPageUI = new ui.test.TestPageUI(); Laya.stage.addChild(testView); } } new LayaUISample; WorkerLoader.workerPath = "libs...

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

543. laya.ui.Tree [ 54%]

...如果父节点手动设置为false,则不会更改)。 Sprite  mouseHandler : Handler 单元格鼠标事件处理器。 默认返回参数(e:Event,index:int)。 Tree mouseThrough : Boolean = false 鼠标事件与此对象的碰撞检测是否可穿透。碰撞检测发生在鼠标事件...

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

544. laya加载unity插件导出的场景 physics3D is not a function [ 54%]

...w GameUI (GameUI.ts:34) at SceneLoader.create (laya.core.js:22061) at EventHandler.__proto.run (laya.core.js:1385) at SceneLoader.__proto.event (laya.core.js:1156) at SceneLoader.__proto._checkNext (laya.core.js:15949) at SceneLoader.__proto.onOneLoadComplete (laya.core.js:16000) at EventHandler.__p...

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

545. native 获取Texture上的某个区域的像素点 getPixels中有报错 [ 54%]

...e = new Laya.Texture();         tex.load("res/img/108879.png",Laya.Handler.create(this,function(): void{             tex.getPixels(0,0,1,1);         })); 附件 : --> 2019-06-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

546. 导出插件导出模型不能用 [ 54%]

...1/t01.ls", "DoorShelf/shelf.lh", "LayaScene_layaScene/layaScene.lh"], Laya.Handler.create(this, onComplete)); ... var shelf = scene.addChild(Laya.Sprite3D.load("LayaScene_layaScene/layaScene.lh")); shelf.transform.position = new Laya.Vector3(-18.69, 1.1, 43.8);                 但是无法...

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

547. runTime使用(JavaScript-IDE篇(JS)-组件化开发相关) [ 54%]

...也不影响后续流程 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); } onVersionLoaded() { //激活大小图映射,加载小图的时候,如果发现小图在大图合集里面,则优先加载大图合集...

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

548. http请求接口时,app闪退。这是http请求的一个demo 哪位大佬帮看一下 [ 54%]

...赏了。 private static onRequestComplete(hr:Laya.HttpRequest, call:Laya.Handler):void { call.runWith(hr.data); Http._requests.push(hr); } 2019-06-10 0 1 分享 微博 QZONE 微信 1560063291用户 赞同来自: 已解决,联系我 xyz 2019-06-10 0 0 分享 微博 QZONE 微信 为什么被折叠?...

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

549. 【laya2.0】加载并且显示图片,并且让该图片居于舞台中央,怎么写? [ 54%]

...te(); Laya.stage.addChild(logo); logo.loadImage("res/atlas/test.png", Laya.Handler.create(this, function(){ console.log("complete!!"); logo.x= Laya.stage.width/2-logo.width/2; logo.y= Laya.stage.height/2-logo.height/2; //logo.pos(Laya.stage.width/2-logo.width/2,Laya.stage.height/2-logo.height/2); })...

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

550. 什么情况下Tween缓动会停止?除了暂停函数外 [ 54%]

...告 laya.utils.Tween.to(self.richText, { x: 0 }, 10000, null, laya.utils.Handler.create(self, self.onTween1));   然后执行游戏里面代码的时候有时候会卡住不动,没报错,非必现。 //播开始动画 var kaishi = new StartAnimView(); this.addChild(kaishi); kaishi.playAnim(); t...

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