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

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

51. 发布flash版本的问题 [ 67%]

...lash版本的SWC,并导入LayaAir引擎库 步骤三、设置启动类并始化(Window.start(this,启动类)) 步骤四、F11发布flash版本并查看效果   2016-09-05 0 0 分享 微博 QZONE 微信 algic 赞同来自: 谢谢cuixueying这么详细的回复,我大概了解了发...

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

52. 2D方向光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 67%]

...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

53. js飞机大战报错 请大神看看 [ 66%]

....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

54. 一篇了解LayaAir的屏幕适配,及有效抗锯齿(TypeScript-LayaAir基础篇(TS)-屏幕适配) [ 66%]

...述是指竖屏模式设计,横屏需反过来。 在LayaAir引擎里,始化引擎的`init(宽,高)`值对应的就是设计宽高。如`Laya.init(750, 1334);`。 打开LayaAirIDE,通过F9快捷键调出的面板里,可以直接设置,效果如图6所示。 ![图6](img/6.png) (图6...

来源: Laya2.0_文档 发布时间: 20210715

55. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 66%]

...`` 完整的示例代码如下: **入口类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

56. 时间轴动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 65%]

...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

57. laya.ui.TextInput [ 65%]

...并添加控件子节点。 TextInput  initialize():void[override] 控件始化。 TextInput measureHeight():Number[override] 显示对象的实际显示区域高度(以像素为单位)。 Label measureWidth():Number[override] 显示对象的实际显示区域宽度(以像素为单位...

来源: Laya2.0_api 发布时间: 20190513

58. 分享:Dragonbones/Spine的换肤操作 [ 64%]

...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

59. 动效模板(JavaScript-LayaAir基础篇(JS)-动画基础) [ 64%]

...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

60. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 64%]

...用。编写以下代码: ```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