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

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

1001. 微信环境下面Laya.Browser.window.protobuf.load不能读取本地的proto文件 [ 52%]

... at http://127.0.0.1:53462/game/code.js:97630:17     at Laya.loader.load.Handler.create (http://127.0.0.1:53462/game/code.js:102231:13)     at Handler.__proto.runWith (http://127.0.0.1:53462/game/code.js:711:59)   查看了应该是微信自带的浏览器内核不支持Function.apply 2018-03-0...

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

1002. IDE发布之后,在res下并没有任何资源,这是什么情况啊? [ 52%]

...。改成 Laya.loader.load("res/atlas/Resources.json",laya.utils.Handler.create(this,this.onReader),null,laya.net.Loader.ATLAS);就好了 Buzhihew • 2017-01-11 15:50 @Monica:.......我.....总之谢谢啊啊啊 Monica • 2017-01-11 15:51 @Buzhihew:不客气(*^__^*) ...... wuquanan • 2...

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

1003. 关于微信小游戏音频控制的问题 [ 51%]

...播放时是直接调用的 Laya.SoundManager.playSound(url, 1, new Laya.Handler(this, this.onComplete)); 但因为很多音效都是属于重复播放,而这个playSound()方法会返回一个SoundChannel,所以我就尝试用了一个dictionary把这些SoundChannel都保存起来,下次播放时...

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

1004. load方法加载cdn上面的图片资源的时候直接报了跨域不同源的问题,怎么破? [ 51%]

...e.log('Gzdaze='); console.log(Gzdaze); Laya.loader.load(Gzdaze.dialogList, Handler.create(this, this.startLoaded)); 代码是这样的 报错 Access to Image at 'http://caifu-1251177394.file.myqcloud.com/beta/book/bookLaya/img/progressBar$bar.png' from origin 'http://bookportal.com' has been blocked...

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

1005. laya.media.SoundNode [ 51%]

... x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多次调用loadImage绘制不同的图片,会同时显示。 Sprite localToGlobal(point:Point, ...

来源: laya_api 发布时间: 20170422

1006. swf预加载问题 [ 51%]

...ort laya.events.EventDispatcher; import laya.net.Loader; import laya.utils.Handler; public class BeforLoader extends EventDispatcher { public static const BEFORLOADERFINISH:String = "BeforLoaderFinish"; private const ADDONE:String = "bingan/AddOne.swf"; private const BG:String = "bingan/bg.swf"; pri...

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

1007. 无法触发浏览器文件上传框 [ 51%]

...ng'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let button = new Laya.Button(sk...

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

1008. [LayaAirIDE3]2d相机打包后问题 [ 51%]

...   "res/building.png", // 你的建筑图片路径             Laya.Handler.create(this, () => {                 // 加载完成后绘制到building Sprite上                 let texture = Laya.loader.getRes("res/building.png");                 this.building.graphic...

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

1009. 模仿教程里的打地鼠写的代码,运行报错 [ 51%]

...r = "#ffcccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addChild(tempBG); } })();在background.js里是这样写的 var background = (function (_sup...

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

1010. 通过Spine工具导出缩小了比例,游戏中显示部分节点坐标和比例出错 [ 51%]

...new Laya.Skeleton();         tmpSpine.load("spineFile/6402.sk",Laya.Handler.create(this,()=>{             tmpSpine.showSkinByIndex(2);//皮肤ID:1,2             tmpSpine.play("idea",true);         }),1);         tmpSpine.x = 365;         tmpSp...

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