大约有 3,286 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0064 秒)
Laya_社区(2693) Laya2.0_文档(206) Laya_示例(157) Laya2.0_示例(119) Laya3.0_api(72) Laya3.0_文档(19) laya_api(11) Laya2.0_api(9)
...是json的格式: // 程序入口 class GameMain{ constructor() { Laya.init(600,400); var that = this; Laya.loader.load([{"url":"res/playerKpiFont.json","type":Laya.Loader.JSON}, {"url":"res/playerKpiFont.png","type":Laya.Loader.IMAGE}],new Laya.Handler(that,function(){ var jsonData = Laya.loader....
来源: Laya_社区 发布时间: 20161014
...例为10000): class Test { private text:Laya.Text; constructor() { Laya.init(550,400,Laya.WebGL); Laya.Stat.show(); var textBox=new Laya.Sprite(); for(var i=0;i<10000;i++) { this.text=new Laya.Text(); this.text.text=(Math.random()*100).toFixed(0); this.text.color="#CCCCCC"; this.text.x=Math.ran...
来源: Laya3.0_文档 发布时间: 20251010
...: Laya.MeshSprite3D; constructor() { super(); Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); this.newScene = Laya.stage.addChild(new Laya.Scene3D()) as ...
来源: Laya_社区 发布时间: 20210103
...10 18:47:40.697 26418-26418/com.layabox.game E/0: ==============Java流程 InitMainCanvas() 09-10 18:47:40.698 26418-26418/com.layabox.game E/LayaConch5: plugin-----------------EngineStart() = /data/data/com.layabox.game//LayaCache/localstorage 09-10 18:47:40.806 26418-26418/com.layabox.game E/SysUt...
来源: Laya_社区 发布时间: 20190910
...13400): ==============Java流程 没有第三方平台直接调用 PlatformInitOK 07-22 15:28:49.275: E/0(13400): ==============Java流程 InitMainCanvas() 07-22 15:28:49.275: E/LayaConch5(13400): plugin-----------------EngineStart() = /data/user/0/com.layabox.conch5//LayaCache/localstorage 07-22 15...
来源: Laya_社区 发布时间: 20190722
...服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。然后过五六个小时后才不会报这个错。。才能进去 runtime运行报错! 微信小游戏中访问带空格的文件出错 as3 ,LayaAir下调试matter.js物理引擎出错。 播放声音出错...
来源: Laya_社区 发布时间: 20171211
...的一个Texture纹理,然后通过Texture的bitmap属性上锁。 ```js init() { //加载场景 Laya.loader.load('res/atlas/comp.atlas',Laya.Handler.create(this,this.onComplete)); } onComplete(){ //获取图集中的一个单图 var a = Laya.loader.getRes('comp/button.png'); //通过单图的bitm...
来源: Laya2.0_文档 发布时间: 20210715
...03:53.205 18569-18569/com.lightpaw.dietyroad E/0: ==============Java流程 InitMainCanvas() 08-08 14:03:53.206 18569-18569/com.lightpaw.dietyroad E/LayaConch5: plugin-----------------EngineStart() = /data/user/0/com.lightpaw.dietyroad//LayaCache/localstorage 08-08 14:03:53.346 18569-18569/com.lightp...
来源: Laya_社区 发布时间: 20190808
...置。代码如下: <meta name='viewport' content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no'/> 以上代码LayaAir引擎中默认添加,并强制添加不得删除。 通过上面这段viewport的配置,那页面在禁止用户手动缩放...
来源: Laya3.0_文档 发布时间: 20251010
...public function UI_List() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平居中对齐 Laya.stage.alignH = Stage.ALIGN_CENTER; //等比缩放 Laya.stage.scaleMode = Stage.SCALE_SHOWALL; //背景...
来源: Laya2.0_文档 发布时间: 20210715