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

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

271. UI-Tree [ 71%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); let res = [ "res/ui/vscroll.png", "res/ui/vscroll$bar.png", "res/ui/vscroll$down.png", "res/ui/vscroll$up.png", "res/ui/tree/clip_selectBox.png", "res/ui/tree/clip_tree_folder.png", "res/ui/tre...

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

272. laya.d3.core.light.AreaLightCom_API3.0 [ 71%]

...t AreaLightCom Index Constructors constructor Properties _extra _singleton color owner runInEditor scriptPath Accessors awaked destroyed enabled hideFlags id intensity lightWorldMatrix lightmapBakedType maxBounces power shadowDepthBias shadowDistance shadowMode shadowNearPlane shadowNormalBias shado...

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

273. 用Transform和直接设置xy坐标的效果不一致 [ 71%]

...一致的。 let txt: Laya.Text = new Laya.Text(); txt.text = "HELLO"; txt.color = "#ffffff"; txt.x = 1136 / 2, txt.y = 320; Laya.stage.addChild(txt);          txt = new Laya.Text(); txt.text = "HELLO"; txt.color = "#ffffff"; let mat = new Laya.Matrix(); mat.translate(1136 / 2, 320); txt.tra...

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

274. laya.d3.core.material.PBRMaterial_API3.0 [ 71%]

...renderQuality Accessors MaterialDefine MaterialProperty _defineDatas albedoColor albedoTexture alphaTest alphaTestValue anisotropy anisotropyEnable anisotropyRotation anisotropyTexture blend blendDst blendDstAlpha blendDstRGB blendEquation blendEquationAlpha blendEquationRGB blendSrc blendSrcAlpha b...

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

275. 如何让material 材质 实现渐变色 [ 71%]

...擎内置的BoxMesh,顶点信息只有Position,Normal,Uv,你可以新增Color属性。并在重构顶点VB数据时加入Color数据。给每个顶点输入你喜欢的颜色,GPU内部会自动对颜色进行差值处理。 2018-03-15 1 1 分享 微博 QZONE 微信 otterboy 赞同来自: 能否...

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

276. 如何将stage背景设置为透明 [ 71%]

...背景颜色,默认为黑色,null为透明。*/ public function get bgColor():String { return _bgColor; }   public function set bgColor(value:String):void { _bgColor = value; conchModel && conchModel.bgColor(value);   if (Render.isWebGL) { if (value && value !== "black" &&a...

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

277. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

... 1.2 TextArea属性介绍 (图1-2) 属性:text、font、fontSize、color、style、syntax、align、bgColor、bordercolor、overflow、wordWrap(默认为true)、leading、padding、underlinecolor、stroke、strokeColor、skin、sizeGrid、type、maxchars、restrict、prompt、promptcolor...

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

278. laya.utils.Utils [ 71%]

...Angle(radian:Number):Number[static] 弧度转换为角度。 Utils  toHexColor(color:Number):String[static] 将传入的 uint 类型颜色值转换为字符串型颜色值。 Utils  toRadian(angle:Number):Number[static] 角度转弧度。 UtilsProperty DetailparseXMLFromStringpropertypublic stat...

来源: laya_api 发布时间: 20170929

279. 计时器-间隔循环 [ 70%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { let vGap = 100; this.rotateTimeBasedText = this.createText("基于时间旋转", Laya.stage.width / 2, (Laya.stage.height - vGap) / 2); this.rotateFrameRateBasedText =...

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

280. 文本基础样式(JavaScript-LayaAir基础篇(JS)-文本) [ 70%]

...); //设置文本内容 txt.text = "hello_world"; //设置文本颜色 txt.color = "#ffffff"; Laya.stage.addChild(txt); ``` 这个时候我们就可以看到txt已经添加到舞台上了,显示了txt中白色的hello_world。 接着我们给文本添加一些其他的字体样式,粗体、斜...

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