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

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

231. 使用laya官方示例代码制作微信小游戏无法显示 [ 74%]

...为小游戏做了轻微的改动): import WebGL = Laya.WebGL import Handler = Laya.Handler module laya { import Stage = Laya.Stage; import Label = Laya.Label; import WebGL = Laya.WebGL; export class UI_Label { constructor() { // // 不支持WebGL时自动切换至Canvas // Laya.init(800, 600, W...

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

232. 关于使用资源版本控制加载出错问题 [ 74%]

..."version.json"; laya.net.ResourceVersion.enable(LoadingView_configUrl,Laya.Handler.create(this,this.onProLoadedBef),2);     _proto.onProLoadedBef =function() { var ProResArray = [ {url : "res/atlas/com/loading.atlas" , type : Laya.Loader.ATLAS},                      ]; Laya.loa...

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

233. [求助]无法使用loader预先加载 [ 74%]

...s/mainpage/BtnNo.png", "res/mainpage/BtnYes.png" ]; Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT); Laya.loader.on(Event.ERROR, this, onError);   private function onAssetLoaded(texture:Texture):void{             //c...

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

234. 怎么加载网络上的图片 [ 74%]

...baseUrl为:http://image.xxx.com/ 2. 使用Laya.loader.load("1.png",Laya.Handler.create(this,this.complete)); 3.//加载完成回调处理 complete():void{} 2018-05-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 sogetsu 相关问题 ...

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

235. 急急 在线等 加载xml 后直播无法自动播放 附示例项目 [ 74%]

... 附示例项目 LoaderPolicy.setup(URLResolver.solvePath("files.fst?"), Handler.create(this, function xload() : void { //无法播放 Laya.loader.load(URLResolver.solvePath("config.xml"), Handler.create(this, onConfigLoaded), null, Loader.XML); //直接调用可以正常播放 //onConfigLoaded(null...

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

236. 滤镜-颜色滤镜 [ 74%]

...LE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.normalizeApe(); this.makeRedApe(); this.grayingApe(); } normalizeApe() { let originalApe = this.createApe(); originalApe.x = (Laya.stage.width - apeTexture.width * 3) / 2; o...

来源: Laya2.0_示例 发布时间: 20251130

237. tween有这个一个bug [ 74%]

...延迟动画 Laya.Tween.to(point,{x:point.x,y:point.y,alpha:1,update:Laya.Handler.create(point,function(){ this.visible = true; })},800,Laya.Ease.backOut,null,i*400); timeline在一开始还在正常执行, 当有一半左右的ui元素进入到场景时, timeline循环卡住不动了, 等所有ui...

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

238. 为什么加载进度回调只调用了一次。下面有代码,求解答 [ 74%]

...aya.Loader.ATLAS}].concat(loadArr),     // 加载完成回调     Laya.Handler.create(null,function(){         var logintest = new loginTestView().init();         Laya.stage.addChild(logintest);     }),     // 加载进度回调 {???为什么只调用了一次 || 进度不是...

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

239. loader.create加载.lh文件,如果文件不存在,也不会受到Event.Error事件 [ 74%]

...   Loader触发error事件后,Loader上没有任何监听error事件的handler,所以错误传递到这里就停止了。 2017-07-11 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 收到,我们看下! 2017-07-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...

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

240. protobuffer加载失败 [ 73%]

...proto 文件失败:     Laya.loader.load(["res/protobuf/user.proto"], Handler.create(this, onAssetsLoaded)); 错误提示如下: [warn]Retry to load: E:/LayaBox/ProtobufLoadTest/bin/res/protobuf/user.proto [error]Failed to load: E:/LayaBox/ProtobufLoadTest/bin/res/protobuf/user.proto 但是...

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