大约有 518 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0068 秒)
Laya_社区(280) Laya2.0_文档(68) Laya3.0_api(54) Laya_示例(42) Laya3.0_文档(34) Laya2.0_示例(24) Laya2.0_api(9) laya_api(7)
...iump float; #endif uniform float u_OutlineLightness; uniform vec4 u_OutlineColor; void main() { vec3 finalColor = u_OutlineColor.rgb * u_OutlineLightness; gl_FragColor = vec4(finalColor,0.0); } ``` ##### 第二个Pass使用的着色器: 顶点着色器 `outline02.vs` 代码如下: ```c++ #includ...
来源: Laya2.0_文档 发布时间: 20210715
...: 10% auto 0;background: #ccc;position: relative;} .msgDiv{font-size: 30px;color: #fff;text-align: center;padding-top: 30px;} </style> </head> <body> <div class="layaDiv"></div> <div class="msgDiv">日志</div> </body> <script src="https://cdn.bootc...
来源: Laya_社区 发布时间: 20170427
...iump float; #endif uniform float u_OutlineLightness; uniform vec4 u_OutlineColor; void main() { vec3 finalColor = u_OutlineColor.rgb * u_OutlineLightness; gl_FragColor = vec4(finalColor,0.0); } ``` ##### 第二个Pass使用的着色器: 顶点着色器 `outline02.vs` 代码如下: ```c++ #includ...
来源: Laya2.0_文档 发布时间: 20210715
...哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈'; text.fontSize = 50; text.color = '#ffffff' panel= new Panel(); panel.vScrollBarSkin="res/home/button_speaker.png"; panel.width=300; panel.height=300; panel.x = 200; panel.y = 200; This.addChild(panel); panel.addChild(text); panel.vScrollBar.m...
来源: Laya_社区 发布时间: 20170609
...fectiveProperty event getBool getBoolByIndex getBuffer getBufferByIndex getColor getColorByIndex getFloat getFloatByIndex getInt getIntByIndex getMatrix4x4 getMatrix4x4ByIndex getShaderData getShaderDataByIndex getShaderPropertyValue getTexture getTextureByIndex getVector2 getVector2ByIndex getVecto...
来源: Laya3.0_api 发布时间: 20231102
...ponent(Laya.MeshRenderer).sharedMaterial as Laya.BlinnPhongMaterial).albedoColor = new Laya.Color(0.0, 1.0, 0.0, 1.0); /* ……省略若干代码 */ 4.4 使用异形物理射线 常规的物理射线是用一条射线来检测碰撞,LayaAir引擎中也提供了与物理射线检测类似的功能...
来源: Laya3.0_文档 发布时间: 20251010
...center"; //水平居中 然后 html.innerHTML = "<span style='color: #cfd4ff;font-size: 30px'>感叹号</span>"; 显示的结果是这句话只水平居中没有垂直居中。 调试的时候,在Layout.layout(this),跳进去 在Layout._multiLineLayout(element)里面...
来源: Laya_社区 发布时间: 20180104
...。 * @param font 定义字号和字体,比如"20px Arial"。 * @param color 定义文本颜色,比如"#ff0000"。 * @param textAlign 文本对齐方式,可选值:"left","center","right"。 */ fillText(text: string | WordText, x: number, y: number, font: string, color: string, textAlign:...
来源: Laya3.0_文档 发布时间: 20251010
...的特有属性如下图: (图1-12) 属性 功能说明 背景色 bgColor 背景颜色,勾选后可以直接输入颜色值,例如:#ffffff,也可以点击输入条右侧的拾色器选取颜色。 子项模板 itemTemplate 渲染单元,具体用法已在1.2节的步骤中给出。 ...
来源: Laya3.0_文档 发布时间: 20251010
..._FORWARDRENDERING WORLDINVERTFRONT Accessors active activeInHierarchy clearColor components cullingMask destroyed displayedInStage farPlane fieldOfView hideFlags id is3D layer maxlocalYDistance nearPlane numChildren orthographic orthographicVerticalSize parent renderingOrder scene skyRenderer timer ...
来源: Laya3.0_api 发布时间: 20231115