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

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

11. ui 打包提供 export 选项 [ 73%]

...源失败导致闪退 问题状态 最新活动: 2019-04-25 18:01 浏览: 1136 关注: 2 人

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

12. 2.0版本的子域还需要初始化MiniAdpter吗? [ 73%]

...初始化MiniAdpter吗? Laya.MiniAdpter.init(true,true); Laya.init(640,1136); 这样初始化,在opendata工程里会报错 Uncaught TypeError: Cannot read property 'init' of undefined at new Main (Main.ts:11) at Object.1../views/Rank (layaMaxUI.ts:1) at o (_prelude.js:11) at r (_prelude.js:11) ...

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

13. 读取json对象 [ 73%]

...() {             //初始化引擎             Laya.init(1136, 640);             Laya.stage.bgColor = "#ffffff";             Stat.show(300,0);             var arr:Array = new Array();             Laya.loader.load("test.json", Handler.create(this,...

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

14. 按照打地鼠教程来无法正常加载资源 [ 71%]

...           //初始化引擎             Laya.init(1136, 640);             Laya.stage.bgColor = "#ffcccc";             var resArr:Array = [                 {res:"res/atlas/ui.atlas"},                 {res:"res/ui/back.png...

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

15. 内嵌模式创建scene,运行时报找不到json文件 [ 71%]

... { public static uiView:any ={"type":"Scene","props":{"width":640,"height":1136},"compId":2,"child":[{"type":"Label","props":{"y":64,"x":214.5,"width":211,"text":"label","styleSkin":"comp/label.png","height":67},"compId":3}],"loadList":["comp/label.png"],"loadList3D":[]}; constructor(){ super()} cre...

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

16. import laya.display.Text出错 [ 70%]

...           //初始化引擎             Laya.init(1136, 640);                                   }            } } 报错如下:   如何没有写import laya.display.Text就不会出错,一写就错。laya.display.Text难道过时...

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

17. 技术文档中的示例js运行报错 [ 70%]

...Loader = Laya.Loader const Handler = Laya.Handler (function () { Laya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(this, onLoaded)) })() function onLoaded() { var cMask = new maskDemoUI() Laya.stage.addChild(cMask) } })()   附件 : --> 20...

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

18. 使用blendMode=add模式时,某些手机上无法正常显示,出现黑底 [ 67%]

...           //初始化引擎             Laya.init(1136, 640,WebGL);              var image:Image = new Image();             image.skin = "res/atlas/clanwar_bg.jpg?" + Math.random();             Laya.stage.addChild(image);         ...

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

19. 2.0 Beta3版本中,runtime脚本的的问题 [ 67%]

...rt default class GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alignV:string="top"; static alignH:string="left"; static startScene:any="mainscene.scene"; static sceneRoot:string=""; static debug:boolean=f...

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

20. 关于定位 我在ID里面设置了right bottom 但是时间效果却不对 [ 67%]

...07 15:54 浏览: 850 关注: 2 人 callback • 2017-08-01 18:10 Laya.init(1136, 640, Laya.WebGL); Laya.Stat.show(0, 0); //设置适配模式 Laya.stage.scaleMode = "noborder"; //设置剧中对齐 Laya.stage.alignH = "center"; Laya.stage.alignV = "center"; //设置横...

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