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

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

591. 背景音乐来回切换报错 [ 59%]

...ad 再play  let dreamsSound:Laya.SoundChannel = null         Laya.loader.load("res/dreams.mp3",Laya.Handler.create(this,function(){             dreamsSound = Laya.SoundManager.playMusic("res/dreams.mp3")         }))          let mainSound:Laya.SoundChannel = nul...

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

592. unity 导出场景无法加载 [ 59%]

...相关的链接 提交 1 个回复 hj 赞同来自: 加载3D场景用Laya.loader.create 2018-09-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 兜里有糖。 相关问题 2.0一不小心删了bin目录下的某个场景json文件。...

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

593. 图集动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 59%]

...板,urls接收的是图片地址集合,所以我们需要先使用Laya.loader.load()将图集文件先加载进来。下面我们直接看示例代码及注释。 ```typescript // 程序入口 class AtlasAniDemo{ private roleAni:Laya.Animation; constructor() { //初始化舞台 Laya.init(1334,75...

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

594. 请问我用网络格式加载成功后,在服务器替换image.atlas和images.png重新打开小游戏没有重新加载服务器的png,只重新加载了atlas [ 59%]

...Array = [ //{ url: "https://piggy.com/res/atlas/images.atlas", type : Laya.Loader./png}, { url: "https://piggy.com/res/atlas/images.atlas", type: Laya.Loader.ATLAS }, { url: "https://piggy.com/res/swf/flash.json", type: Laya.Loader.JSON }, { url: "images/background.png", type: Laya.Loader.IMAGE }, {...

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

595. 进度条随百分比变化怎么写 [ 59%]

...进度条的制作(ActionScript 3.0) 这种进度条怎么实现? Laya.loader.create 进度回调函数执行两次 打包为APP后,Lable的宽高有所变化,请问如何修正? 麻烦帮看一下这种遮罩bar的进度条设了遮罩不起作用 关于环形进度条,进度不能重置问...

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

596. 用Unity插件导出的模型渲染报错 [ 59%]

...5:59 @155*****924:需要些时间的 155*****924 • 2019-05-16 15:16 Laya.loader.create("model/role/1/model.lh", Laya.Handler.create(this, this.OnComplete)); private OnComplete():void { let sprite:Laya.Sprite3D = Laya.loader.getRes("model/role/1/model.lh"); this._scene.addChild(...

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

597. list里面可以加入多个view吗? [ 59%]

...放置view,写了个例子,可以参考下:package { import laya.net.Loader; import laya.ui.List; import laya.ui.View; import laya.utils.Browser; import laya.utils.Handler; public class LayaAirDemo { private var list:List; public function LayaAirDemo() { Laya.init(Browser.width,Browser.height)...

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

598. 读取txt文档 [ 59%]

...哈 调用 Laya.MiniAdpter.downLoadFile缓存文件之后。再调用Laya.loader.create,不会自动去读取缓存文件 VBOX HBOX 的文档太少了,都不知道这两个怎么用?到底和box有什么区别?不是普通的容器吗?增加了什么功能呢? 按官网上的文档 使用L...

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

599. 范例里。已经预加载资源,但是调试里面无法显示出资源。 [ 59%]

...7-10-25 16:48 @q8196901:json文件需要指定资源类型,例如:Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢

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

600. SoundManager第一次加载播放延迟怎么解决? [ 59%]

...播这个bgm.mp3,如何预加载呢 cuixueying • 2016-11-30 15:06 Laya.loader.load("xxx.mp3",Handler.create(this,onComplete),null,Loader.SOUND) daohu • 2016-11-30 18:09 @cuixueying:好的,这样写后,SoundManager.playMusic("../../../../res/sounds/bgm.mp3", 1, new Handl...

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