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

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

231. Sprite-缓存为静态图像 [ 73%]

...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

232. 计时器-延迟调用 [ 73%]

...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

233. Sprite-缓存为静态图像 [ 73%]

...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

234. HtmlDivElement的innerHTML属性BUG [ 73%]

...Element = new HTMLDivElement(); htmlDiv.style.fontSize = 25; htmlDiv.style.color = "#ffffff"; Laya.stage.addChild(htmlDiv); htmlDiv.innerHTML = "&lt;font color='#00ff00'&gt;宝石1&lt;br/&gt;宝石2&lt;/font&gt;";用了1.7.17版本测试,未解决,麻烦官方测试下。 附件 : --> Client.zip...

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

235. 自定义2D Shader · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

...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

236. 使用laya官方示例代码制作微信小游戏无法显示 [ 73%]

...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

237. laya.d3.core.light.PointLightCom_API3.0 [ 73%]

... 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

238. HTMLDivElement 设置字体 [ 72%]

...  html.innerHTML = "&lt;span style='font-weight:bold; font:24px SimHei' color='#ff0000'&gt;欢迎你的加入&lt;/span&gt;"             +"&lt;span style='font-weight:bold; font:24px Arial' color='#ff0000'&gt;欢迎你的加入&lt;/span&gt;";             this.addChild(html);...

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

239. laya.display.cmd.DrawTextureCmd [ 72%]

...ureCmd  blendMode : String (可选)混合模式。 DrawTextureCmd  color : String (可选)颜色滤镜。 DrawTextureCmd  colorFlt : ColorFilter = nullDrawTextureCmd  height : Number (可选)高度。 DrawTextureCmd  matrix : Matrix (可选)矩阵信息。 DrawTextureCmd ...

来源: Laya2.0_api 发布时间: 20190513

240. 文本-下划线 [ 72%]

...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