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

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

1. 超出文本区域的处理&滚动文本(TypeScript-LayaAir基础篇(TS)-文本) [ 100%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } private createTexts(): void { var t1: Text = this.createText(); t1.overflow = Text.VISIBLE; t1.pos(10, 10); var t2: Tex...

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

2. 超出文本区域的处理&滚动文本(JavaScript-LayaAir基础篇(JS)-文本) [ 99%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createTexts(); })(); function createTexts() { var t1 = createText(); t1.overflow = Text.VISIBLE; t1.pos(10, 10); var t2 = createText(); t2.ov...

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

3. Clip属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 73%]

...e.ALIGN_MIDDLE; //画布水平居中对齐 Laya.stage.alignH = Stage.ALIGN_CENTER; //等比缩放 Laya.stage.scaleMode = Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.utils.Handler.create(this,onSkinLoaded)); ...

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

4. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 55%]

...or = "#FFFFFF"; text.fontSize = 100; text.valign = "middle"; text.align = "center"; text.size(Laya.stage.width, Laya.stage.height); } private function onSuccess(url:String):void { video = new Video(Laya.stage.width, Laya.stage.height); video.load(url); Laya.stage.addChild(video); Laya.stage.on('clic...

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

5. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 42%]

...color = "#ffffff"; tex.fontSize = 100; tex.valign = "middle"; tex.align = "center"; tex.size(Laya.stage.width, Laya.stage.height); } function onSuccess(url) { this.video = new Laya.Video(Laya.stage.width, Laya.stage.height); this.video.load(url); Laya.stage.addChild(this.video); Laya.stage.on("click...

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

6. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 41%]

...color = "#ffffff"; tex.fontSize = 100; tex.valign = "middle"; tex.align = "center"; tex.size(Laya.stage.width,Laya.stage.height); } private onSuccess(url:string):void{ this.video = new Laya.Video(Laya.stage.width,Laya.stage.height); this.video.load(url); Laya.stage.addChild(this.video); Laya.stage.o...

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