大约有 311 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0059 秒)
Laya_社区(148) Laya2.0_文档(45) Laya_示例(35) Laya2.0_示例(32) Laya3.0_文档(17) Laya3.0_api(16) Laya2.0_api(11) laya_api(7)
...// 初始化舞台 Laya.init(1334,750, WebGL); //背景颜色 Laya.stage.bgColor = "#1b2436"; //创建缓动文本 createTween(); } //创建缓动文本 private function createTween():void { //"LayaBox"字符串总宽度 var w:int = 800; //文本创建时的起始x位置(>>在此使用右移运算...
来源: Laya2.0_文档 发布时间: 20210715
...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
...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
...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
...数字输入)、string(字符串输入)、boolean(多选框)、color(颜色框+调色盘+拾色器)、vec2(XY输入组合)、vec3(XYZ输入组合)、vec4(XYZW输入组合)、asset(选择资源),这些输入控件。 通常情况下,IDE会根据组件属性类型自...
来源: Laya3.0_文档 发布时间: 20251010
...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
...36, 640, WebGL); Laya.stage.bgColor = "#ffffff"; //以500毫秒的时间间隔播放颜色切换的矩形 Laya.timer.loop(500, this, createRect); })(); function ...
来源: Laya_社区 发布时间: 20170510
...标签,例如:`HTML文本` | | `img` | 图片标签,例如:`` | | `color` | 文本颜色标签,例如:`颜色` | 具体到style标签的属性支持如下: | style标签属性示例 | 属性说明 | | ------------------------------ | --------------------------- | | `italic:true|false...
来源: Laya2.0_文档 发布时间: 20210715
...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
...; txt.text = "HelloLayaBox"; txt.color = "#ff0000"; txt.fontSize = 66; txt.bold = true; txt.stroke = 5;//字体描边 txt.strokeColor = "#ffffff"; ...
来源: Laya_社区 发布时间: 20171025