大约有 105 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0127 秒)
Laya_社区(49) Laya2.0_api(22) Laya2.0_文档(14) Laya3.0_api(9) Laya3.0_文档(7) Laya2.0_示例(2) laya_api(1) Laya_示例(1)
...lash版本的SWC,并导入LayaAir引擎库 步骤三、设置启动类并初始化(Window.start(this,启动类)) 步骤四、F11发布flash版本并查看效果 2016-09-05 0 0 分享 微博 QZONE 微信 algic 赞同来自: 谢谢cuixueying这么详细的回复,我大概了解了发...
来源: Laya_社区 发布时间: 20160904
...void { this.lightComp = this.owner.getComponent(Laya.DirectionLight2D); // 初始化文本组件 this.displayText = new Laya.Text(); this.displayText.color = "#ffffff"; this.displayText.font = "Arial"; this.displayText.fontSize = 24; this.displayText.bold = true; this.displayText.x = 10; // 例如...
来源: Laya3.0_文档 发布时间: 20251010
....pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick); // 初始化UI 显示 this.reset(); } ... "Cannot read property 'on' of undefined" "TypeError: Cannot read property 'on' of undefined at new GameInfo (file:///C:/Users/Kevin/Desktop/test/AirWar/AirW...
来源: Laya_社区 发布时间: 20171118
...述是指竖屏模式设计,横屏需反过来。 在LayaAir引擎里,初始化引擎的`init(宽,高)`值对应的就是设计宽高。如`Laya.init(750, 1334);`。 打开LayaAirIDE,通过F9快捷键调出的面板里,可以直接设置,效果如图6所示。  (图6...
来源: Laya2.0_文档 发布时间: 20210715
...`` 完整的示例代码如下: **入口类GameMain.js** ```javascript //初始化引擎 Laya.init(600, 400); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); fu...
来源: Laya2.0_文档 发布时间: 20210715
...eMain.ts** ```typescript // 程序入口 class GameMain{ constructor() { //初始化引擎 Laya.init(1334,750,Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,this....
来源: Laya2.0_文档 发布时间: 20210715
...并添加控件子节点。 TextInput initialize():void[override] 控件初始化。 TextInput measureHeight():Number[override] 显示对象的实际显示区域高度(以像素为单位)。 Label measureWidth():Number[override] 显示对象的实际显示区域宽度(以像素为单位...
来源: Laya2.0_api 发布时间: 20190513
...c function LayaAirDemo() { Laya.init(Browser.width,Browser.height,WebGL);//初始化LayaAir引擎 Stat.show();//舞台左上角显示帧频信息 Laya.stage.bgColor='#EEFFCC';//设置舞台背景色 Laya.stage.alignH='center';//水平居中对齐 Laya.stage.alignV='middle';//垂直居中对齐 Laya....
来源: Laya_社区 发布时间: 20170324
...js`文件,在index.html中引用。编写以下代码: ```javascript //初始化引擎 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(th...
来源: Laya2.0_文档 发布时间: 20210715
...用。编写以下代码: ```typescript class Main { constructor() { //初始化舞台 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui.atlas",Laya.Handler.create(this,t...
来源: Laya2.0_文档 发布时间: 20210715