大约有 1,105 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)
Laya_社区(582) Laya3.0_api(207) Laya2.0_文档(82) Laya_示例(59) laya_api(46) Laya3.0_文档(44) Laya2.0_api(44) Laya2.0_示例(41)
...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Stat.show(); setup(); })(); function setup() { var textBox = new Sprite(); // 随机摆放文本 var text; for (var i = 0; i < 1000; i++) { text = new Text(); text.fontSize = 20; text.text = (Math.random() ...
来源: Laya_示例 发布时间: 20251130
...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.demonstrate(); } demonstrate() { for (let i = 0; i < 10; i++) { Laya.timer.callLater(this, this.onCallLater); } } onCallLater() { const Text = Laya.Text; console.log("onCallLater triggered...
来源: Laya2.0_示例 发布时间: 20251130
...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.Stat.show(); this.cacheText(); } cacheText() { const Sprite = Laya.Sprite, Text = Laya.Text; let textBox = new Sprite(); Laya.stage.addChild(textBox); // 随机摆放文本 let text; for (let i = 0; i ...
来源: Laya2.0_示例 发布时间: 20251130
...Element = new HTMLDivElement(); htmlDiv.style.fontSize = 25; htmlDiv.style.color = "#ffffff"; Laya.stage.addChild(htmlDiv); htmlDiv.innerHTML = "<font color='#00ff00'>宝石1<br/>宝石2</font>";用了1.7.17版本测试,未解决,麻烦官方测试下。 附件 : --> Client.zip...
来源: Laya_社区 发布时间: 20180419
...D, default: "white"}, u_SampleTexcoord : {type: Vector2, default:[1,1]}, u_Color : {type:Vector4, default:[1,1,1,1]}, u_spend : {type:Float, default:1.0}, u_defaultMat : {type:Matrix4x4, default:[ 1,0,0,0 0,1,0,0, 0,0,1,0, 0.0,0, ]} } } Shader3D End 3.2 引擎常见内置uniform 注意:其余引...
来源: Laya3.0_文档 发布时间: 20251010
...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("...
来源: Laya_社区 发布时间: 20180529
... PointLightCom Index Constructors constructor Properties _extra _singleton color owner runInEditor scriptPath Accessors awaked destroyed enabled hideFlags id intensity lightWorldMatrix lightmapBakedType range shadowDepthBias shadowDistance shadowMode shadowNearPlane shadowNormalBias shadowResolution...
来源: Laya3.0_api 发布时间: 20231115
... html.innerHTML = "<span style='font-weight:bold; font:24px SimHei' color='#ff0000'>欢迎你的加入</span>" +"<span style='font-weight:bold; font:24px Arial' color='#ff0000'>欢迎你的加入</span>"; this.addChild(html);...
来源: Laya_社区 发布时间: 20180303
...ureCmd blendMode : String (可选)混合模式。 DrawTextureCmd color : String (可选)颜色滤镜。 DrawTextureCmd colorFlt : ColorFilter = nullDrawTextureCmd height : Number (可选)高度。 DrawTextureCmd matrix : Matrix (可选)矩阵信息。 DrawTextureCmd ...
来源: Laya2.0_api 发布时间: 20190513
...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createTexts(); })(); function createTexts() { createText('left', 1, null, 100, 10); createText('center', 2, "#00BFFF", 155, 150); createText('right', 3, "#FF7F50", 210, 290); } function createText(align, un...
来源: Laya_示例 发布时间: 20251130