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

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

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

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

来源: Laya_示例 发布时间: 20251209

292. 如何让material 材质 实现渐变色 [ 70%]

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

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

293. laya.utils.Utils [ 70%]

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

来源: laya_api 发布时间: 20170929

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

...一致的。 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

295. 文本-自动调整文本尺寸 [ 70%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { const Text = Laya.Text; // 该文本自动适应尺寸 var autoSizeText = this.createSampleText(); autoSizeText.overflow = Text.VISIBLE; autoSizeText.y = 50; // 该文本被限制...

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

296. UI-Tree [ 70%]

...treeItem", "width": "150", "left": "33", "height": "22", "name": "label", "color": "#ffff00", "right": "0", "x": "33"}}, {"type": "Clip", "props": {"x": "0", "name": "arrow", "y": "5", "skin": "ui/clip_tree_arrow.png", "clipY": "2"}}], "type": "Box", "props": {"name": "render", "right": "0", "left":...

来源: Laya_示例 发布时间: 20251209

297. UI-Tree [ 70%]

...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_示例 发布时间: 20251209

298. 如何将stage背景设置为透明 [ 70%]

...背景颜色,默认为黑色,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

299. laya.d3.core.light.AreaLightCom_API3.0 [ 70%]

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

300. [LayaAir3]shader u_Time 一直为0 [ 70%]

...是黄色           if(u_Time == 0.0)         {             color = vec4(1.0,1.0,0.0,1.0);         }         else         {              color = vec4(1.0);         } 附件 : --> Bug.zip 2024-03-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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