大约有 900 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0053 秒)
Laya_社区(682) Laya2.0_文档(89) Laya_示例(48) Laya2.0_示例(39) Laya3.0_文档(21) Laya3.0_api(19) laya_api(1) Laya2.0_api(1)
...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
...相关的链接 提交 1 个回复 hj 赞同来自: 加载3D场景用Laya.loader.create 2018-09-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 兜里有糖。 相关问题 2.0一不小心删了bin目录下的某个场景json文件。...
来源: Laya_社区 发布时间: 20180918
...板,urls接收的是图片地址集合,所以我们需要先使用Laya.loader.load()将图集文件先加载进来。下面我们直接看示例代码及注释。 ```typescript // 程序入口 class AtlasAniDemo{ private roleAni:Laya.Animation; constructor() { //初始化舞台 Laya.init(1334,75...
来源: Laya2.0_文档 发布时间: 20210715
...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
...进度条的制作(ActionScript 3.0) 这种进度条怎么实现? Laya.loader.create 进度回调函数执行两次 打包为APP后,Lable的宽高有所变化,请问如何修正? 麻烦帮看一下这种遮罩bar的进度条设了遮罩不起作用 关于环形进度条,进度不能重置问...
来源: Laya_社区 发布时间: 20170828
...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
...放置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
...哈 调用 Laya.MiniAdpter.downLoadFile缓存文件之后。再调用Laya.loader.create,不会自动去读取缓存文件 VBOX HBOX 的文档太少了,都不知道这两个怎么用?到底和box有什么区别?不是普通的容器吗?增加了什么功能呢? 按官网上的文档 使用L...
来源: Laya_社区 发布时间: 20180130
...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
...播这个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