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

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

471. ShaderPass介绍(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 45%]

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

472. 关于laya生成的canvas定位问题导致内部事件不正确 [ 45%]

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

473. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 45%]

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

474. 能不能添加一个控件可以让文字和组件实现弹性滚动啊 [ 44%]

...哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈'; 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

475. laya.d3.core.material.unlit.UnlitTestMaterial_API3.0 [ 44%]

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

476. 3D物理系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

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

477. html固定宽高,设置垂直居中没有效果。只有水平居中才生效。看了下源码,感觉在updatePos函数里的算法不对 [ 44%]

...center"; //水平居中 然后 html.innerHTML = "<span style='color: #cfd4ff;font-size: 30px'>感叹号</span>"; 显示的结果是这句话只水平居中没有垂直居中。 调试的时候,在Layout.layout(this),跳进去 在Layout._multiLineLayout(element)里面...

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

478. 文本进阶使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...。 * @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

479. 树状列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...的特有属性如下图: (图1-12) 属性 功能说明 背景色 bgColor 背景颜色,勾选后可以直接输入颜色值,例如:#ffffff,也可以点击输入条右侧的拾色器选取颜色。 子项模板 itemTemplate 渲染单元,具体用法已在1.2节的步骤中给出。 ...

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

480. laya.d3.core.BaseCamera_API3.0 [ 43%]

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