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

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

301. ios load后 声音播放问题 [ 71%]

...:8900/bin/comp/tap.mp3",type:Laya.Loader.SOUND});Laya.loader.load(resurls, Handler.create(this, onLoaded), Handler.create(this, onLoading, null, false)); function onLoaded(){ console.log(Laya.loader.getRes(src)); }   在chrome,安卓下都是正常的,在ios和mac Safari下是undefined 放在...

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

302. 资源压缩成zip后加载的问题 [ 71%]

...loader,那就不用处理了。 Laya.loader.load("res/aaa.scene", Laya.Handler.create(null, (content)=>{console.log(content)})); Laya.loader.load("res/bbb.json", Laya.Handler.create(null, (content)=>{console.log(content)})); 2019-04-25 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...

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

303. 用谷歌获取经纬度报错? [ 71%]

...度报错? // 尝试获取当前位置 Geolocation.getCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确度...

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

304. 创建图集的问题 [ 71%]

..._JSON_URL, type: Laya.Loader.ATLAS } ); Laya.loader.load(asset, laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); // 使用图集 var arr = []; for(var i=1; i<=12; i++){ arr.push('nvhaidaomao/nvhaidaomao_down'+i+'.png'); } Animation.createFrames(...

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

305. 能不能提供一下AS3对应的playerglobal.swc的源码? [ 71%]

...yerglobal.swc的源码? 我想修改一下Function,让h5开发时候把Handler嵌入进去 2017-07-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 这个提供不了。 ...

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

306. 粒子中引用的图片能合图吗 [ 71%]

...ER; Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void {     Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } function onPartLoaded(data: any) {     let part = new Laya.Particle...

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

307. android native环境,ttfloader加载的字体,设置无效果! [ 71%]

...   ttfloader.fontName = "ubuntu";             ttfloader.err = Laya.Handler.create(this, () => {                 console.log("加载失败ubuntu-bold.ttf");             });             ttfloader.complete = Laya.Handler.create(this, () => {                   ...

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

308. sprite.loadImage加载图片怎么设置要显示的x,y坐标和宽高? [ 71%]

...height); this.tMap.createMap("res/mario_map/new_map2.json", viewRect, Laya.Handler.create(this,this.initMap)); } private initMap(): void { var layer = this.tMap.getLayerByIndex(9); var gs = layer.getObjectByName('others1'); var sp: Laya.Sprite = new Laya.Sprite(); sp.loadImage("res/smallWalkRight.pn...

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

309. 我二进制资源load之后,为什么通过getRes获取不到。 [ 71%]

...config/data.txt", type: Laya.Loader.BUFFER }]; Laya.loader.load(resources, Handler.create(this, this.onComplete), Handler.create(this, this.onProcess), null, 1, false); } onComplete(e,a,b) { console.log('资源加载完成!!',e,a,b); var cfg = Laya.Loader.getRes("config/data.txt"); console.log('...

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

310. 预加载结束之后还是报lose skin [ 70%]

...kin private loadRes():void{ Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onAssetLoaded(texture:Laya.Te...

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