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

大约有 2,782 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0069 秒)

591. 特效LOADED监听不到 [ 76%]

...n; import laya.display.Stage; import laya.maths.Rectangle; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class LayaAirDemo { private const AniConfPath:String = "fighter/fighter.json"; public function LayaAirDemo() { // 不支持WebGL时...

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

592. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 76%]

...a.Browser.window.URL.createObjectURL(blob);//创建一个url对象; //用loader来加载url Laya.loader.load(url,Laya.Handler.create(this,this.showImg,[url]),null,Laya.Loader.IMAGE); } private showImg(url:string):void{ var t:Laya.Texture = Laya.loader.getRes(url); var ape:Laya.Sprite = new Laya.Sp...

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

593. Animation的createFrames为何加载不了有的图集资源 [ 76%]

...rt laya.ani.AnimationState; import laya.display.Animation; import laya.net.Loader; import laya.ui.Image; import laya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400); //Laya.loader.load([{url: "res/atlas/char_wuda...

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

594. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 76%]

...= Browser.window.URL.createObjectURL(blob);//创建一个url对象; //用loader来加载url Laya.loader.load(url, Handler.create(this,showImg,[url]),null,Loader.IMAGE); } private function showImg(url:String):void { var t:Texture = Laya.loader.getRes(url); var ape:Sprite = new Sprite(); ape.graphic...

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

595. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 76%]

... 有自带这种方式 这里我们用到图集 和 普通图片 1、Laya.Loader.IMAGE 2、Laya.Loader.ATLAS   因此我们的LayaSample.js需要修改一下加载代码如下: //加载单个资源 var asset = []; asset.push({ url : [ "res/background.png", "res/m_background.png", "res/floor.png" ...

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

596. MovieClip 报错 [ 76%]

...,临时你也可以通过修改代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find")...

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

597. laya3D导入动画材质在安卓手机和电脑上显示正常,在苹果手机显示异常 [ 76%]

...;, "res/maze/img/demo/toolClock/Conventional/puzzleB.lh" ]; Laya.loader.create(this.resource, Laya.Handler.create(this, this.onLoadFinish)); } private onLoadFinish() { //初始化场景 this.scene = new Laya.Scene3D(); Laya.stage.addChild(this.scene); this.scene.ambientColor = new Laya.Vec...

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

598. 分享个资源加载的方法,类似白鹭的加载方式 [ 76%]

...ing = "onLoadedResJson"; // 资源配置文件加载出错 public static ONLOADERRORRESJSON: string = "onLoadError"; // 资源组加载完成 public static ONLOADGROUPCOMPLETE: string = "onLoadGroupConplete"; // 资源组加载出错 public static ONLOADGROUPERROR: string = "onLoadGroupError"; priva...

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

599. vivo小游戏 LayaIDE2.2.0使用fairygui报错 [ 76%]

...fairygui界面报错, fgui.UIConfig.packageFileExtension = "json"; Laya.loader.load([     { url: "res/Basics_atlas0.png", type: Laya.Loader.IMAGE },     { url: "res/Basics.json", type: Laya.Loader.BUFFER }     ], Laya.Handler.create(this, this.onLoaded)); }  onLoaded(): void {     console...

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

600. playSound和playMusic结束时候有异常抛出 [ 76%]

playSound和playMusic结束时候有异常抛出 1. loader加载了{url:"res/music/Music_start.mp3",type:Laya.Loader.SOUND}资源 2. 加载结束后,调用Laya.SoundManager.playSound("res/music/Music_start.mp3") 3. 声音播放完成后,系统抛出异常__proto._tryClearBuffer=function(sourceN...

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