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

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

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

...宽高的会显示不全,物理宽高超过设计宽高的会留出屏幕背景(白屏)。 该模式通常不被使用,仅有少数不使用引擎适配方案,有着自定义适配规则的开发者来使用。 noscale模式,不同机型对比效果如11-1中所示。 ![11-1](img/1...

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

2. 设置遮罩(JavaScript-LayaAir基础篇(JS)-位) [ 93%]

...andler; var Res; var img; (function() { Laya.init(1136,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //资源路径 Res = "res/img/monkey1.png"; //先加载片资源,在片资源加载成功后,通过回调方法绘制片并添加到舞台 Laya.loader.load(Res,Handler.cre...

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

3. 设置遮罩(TypeScript-LayaAir基础篇(TS)-位) [ 92%]

...rivate img:Laya.Sprite; constructor() { Laya.init(1336,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //资源路径 this.Res = "res/img/monkey1.png"; //先加载片资源,在片资源加载成功后,通过回调方法绘制片并添加到舞台 Laya.loader.load(this.Res,...

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

4. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 91%]

...ALIGN_CENTER; //等比缩放 Laya.stage.scaleMode = Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //像资源 var res:Array = [ "../../../../res/ui/vscroll.png", "../../../../res/ui/vscroll$bar.png", "../../../../res/ui/vscroll$down.png", "../../../../res/ui/vscroll$up.png",...

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

5. Panel使用文档(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 91%]

...d() { //实例化Panel组件 var panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100); //给panel设置滚动条皮肤 panel.vScrollBarSkin = "comp/vscroll.png"; //将panel添加到stage上 Laya.stage.addC...

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

6. Panel使用文档(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 91%]

...化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100); //给panel设置滚动条皮肤 panel.vScrollBarSkin = "comp/vscroll.png"; //将panel添加到stage上 Laya.stage.addChi...

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

7. Panel使用文档(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 90%]

...id { //实例化Panel组件 var panel:Panel = new Panel(); //给panel添加背景色 panel.graphics.drawRect(0,0,100,100,"#ffcccc"); //给panel设置宽高 panel.size(100,100); //给panel设置滚动条皮肤 panel.vScrollBarSkin = "comp/vscroll.png"; //将panel添加到stage上 Laya.stage.addChild(...

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

8. Tree属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 87%]

...selectBox 的name 为“selectBox”时,将被识别为树结构的项的背景。2帧:悬停时背景、选中时背景。 selectBox.height = 32; selectBox.x = 13; selectBox.left = 12; this.addChild(selectBox); var folder = new Clip("../../res/ui/tree/clip_tree_folder.png", 1, 3); folder.name =...

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

9. Tree属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 86%]

...selectBox 的name 为“selectBox”时,将被识别为树结构的项的背景。2帧:悬停时背景、选中时背景。 selectBox.height = 32; selectBox.x = 13; selectBox.left = 12; this.addChild(selectBox); var folder: Clip = new Clip("res/ui/tree/clip_tree_folder.png", 1, 3); folder.name =...

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

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

...in.js** ```javascript //初始化引擎 Laya.init(600, 400); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 v...

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