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

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

101. 缓动动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 79%]

...// 初始化舞台 Laya.init(1334,750, WebGL); //背景颜色 Laya.stage.bgColor = "#1b2436"; //创建缓动文本 createTween(); } //创建缓动文本 private function createTween():void { //"LayaBox"字符串总宽度 var w:int = 800; //文本创建时的起始x位置(>>在此使用右移运算...

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

102. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 78%]

...ault:"hello world"}*/ public text: string = "hello world"; /** @prop {name:color, tips:"字符串类型示例", type:String, default:"#0000ff"}*/ public color: string = "#0000ff"; /** @prop {name:layoutType, tips:"排版方式(verticalRight-0 竖排从右到左)", type:enum, default:0}*/ public ...

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

103. 鼠标交互-修正交互区域 [ 78%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.buildWorld(); this.createLogger(); } buildWorld() { const Event = Laya.Event; this.createCoralRect(); this.createDeepSkyblueRect(); this.createDarkOrchidRect(); /...

来源: Laya2.0_示例 发布时间: 20260303

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

...age.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: Text = this.createText(); t2.overflow = Text.SCROLL; t2.pos(10, 110)...

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

105. 组件装饰器说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 78%]

...数字输入)、string(字符串输入)、boolean(多选框)、color(颜色框+调色盘+拾色器)、vec2(XY输入组合)、vec3(XYZ输入组合)、vec4(XYZW输入组合)、asset(选择资源),这些输入控件。 通常情况下,IDE会根据组件属性类型自...

来源: Laya3.0_文档 发布时间: 20251010

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

...age.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.overflow = Text.SCROLL; t2.pos(10, 110); var t3 = createText(); t3....

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

107. flag的问题 [ 78%]

...36, 640, WebGL);                       Laya.stage.bgColor = "#ffffff";                   //以500毫秒的时间间隔播放颜色切换的矩形         Laya.timer.loop(500, this, createRect);               })();       function ...

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

108. 一篇了解所有的LayaAir文本组件(TypeScript-LayaAir基础篇(TS)-文本) [ 78%]

...标签,例如:`HTML文本` | | `img` | 图片标签,例如:`` | | `color` | 文本颜色标签,例如:`颜色` | 具体到style标签的属性支持如下: | style标签属性示例 | 属性说明 | | ------------------------------ | --------------------------- | | `italic:true|false...

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

109. laya.display.Graphics_API3.0 [ 77%]

...turns void drawCircle drawCircle(x: number, y: number, radius: number, fillColor: any, lineColor?: any, lineWidth?: number): DrawCircleCmd Defined in laya/display/Graphics.ts:544 绘制圆形。 Parameters x: number 圆点X 轴位置。 y: number 圆点Y 轴位置。 radius: number 半径。 fillCol...

来源: Laya3.0_api 发布时间: 20231115

110. 报错:找不到基类,按照laya社区的解答做了,但是导致了另外一个类和接口出现一样的错 [ 77%]

...;             txt.text = "HelloLayaBox";             txt.color = "#ff0000";             txt.fontSize = 66;             txt.bold = true;                          txt.stroke = 5;//字体描边             txt.strokeColor = "#ffffff";    ...

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