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

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

41. Laya整合echarts示例(TypeScript) [ 80%]

...TypeScript) 下图是运行效果   以下是新建项目,修改后的onLoaded函数。 function onLoaded(): void { //laya相关代码 var div:any = Laya.Browser.document.createElement("div"); div.style.width = "600px"; div.style.height = "400px"; Laya.Browser.document.body.appendChild(div); va...

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

42. ios load后 声音播放问题 [ 80%]

...3",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 放在一个sprite的click事...

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

43. 加载lh格式模型报错 [ 80%]

...:/LayaAirProjects/myFirstLaya/bin/libs/laya.core.js:18674:22)   at Loader.onLoaded (file:///D:/LayaAirProjects/myFirstLaya/bin/libs/laya.core.js:18630:22)   at EventHandler.runWith (file:///D:/LayaAirProjects/myFirstLaya/bin/libs/laya.core.js:997:38)   at HttpRequest.event (file:///D:/LayaAirProj...

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

44. ProgressBar 代码问题 [ 80%]

... this.testLoadingBar_anim.on(Event.CLICK,this,()=>{     var loading : Onloading = new Onloading();     loading.popup(true);     Laya.timer.loop(100, this, loading.changeValue); }); 进度条代码: import Handler = Laya.Handler; export class Onloading extends ui.LoadingUI{        constr...

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

45. 微信小游戏IDE加载位图字体,提示错误 [ 79%]

...eFont (http://127.0.0.1:61385/game/code.js:803:17)     at Loader.__proto.onLoaded (http://127.0.0.1:61385/game/code.js:12700:11)     at HTMLImage.onload (http://127.0.0.1:61385/game/code.js:21213:15)     at Image._source._source.onload (http://127.0.0.1:61385/game/code.js:20175:11)   请问...

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

46. 使用多个时间轴动画 demo.ani(0,true,'name')失效 [ 79%]

...背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui/boos.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.load...

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

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

..."res/atlas/char_wudang01.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); this.onLoaded(); } private function onLoaded():void { //Animation.createFrames(["res/atlas/monsterbeattack/0.png","res/atlas/monsterbeattack/1.png","res/atlas/monsterbeattack/2.png"], "aa") Animation.createFrames(...

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

48. 如何获取实时更新的动态数据,数据在文本中 [ 79%]

...aya.Loader.TEXT} ] Laya.loader.load(resArray,Laya.Handler.create(this,this.Onloaded),null,Laya.Loader.TEXT,0,true,null,true);*/ let event1=Laya.loader.load("eyeimf.txt", Laya.Handler.create(this, this.Onloaded), null, Laya.Loader.TEXT,0,true,null,true); //console.log(Laya.Loader.loadedMap); } 另外...

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

49. 【分享】圆形进度条上图片跟随进度并旋转角度 [ 79%]

...//首先是加载资源 Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false));      /** * 加载资源进度 * @param percent 百分比 */ private onLoading(percent: number): void { this.view.box_mark.graphics.drawPie(216, 216, 216, -90, (...

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

50. 构建好android studio项目后,debug出错 [ 79%]

...Ok (apploader.js:6059:20) at apploader.js:6038:20 at FileReader.filereader.onload (apploader.js:6732:47) >>>>>>>>>>>>>>>evalhttp://stand.alone.version/libs/laya.ui.js I/ViewRootImpl: CPU Rendering VSync enable = true I/LayaBox: alert=undefined:5155: Synta...

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