大约有 1,200 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0050 秒)
Laya_社区(628) Laya3.0_api(207) Laya2.0_文档(119) Laya_示例(59) Laya3.0_文档(56) laya_api(46) Laya2.0_api(44) Laya2.0_示例(41)
...ra.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //平面 var plane = sc...
来源: Laya_示例 发布时间: 20251209
...ectionLightCom Index Constructors constructor Properties _extra _singleton color owner runInEditor scriptPath Accessors awaked destroyed enabled hideFlags id intensity lightWorldMatrix lightmapBakedType shadowCascadesMode shadowDepthBias shadowDistance shadowFourCascadeSplits shadowMode shadowNearPl...
来源: Laya3.0_api 发布时间: 20231115
...性值范围,并在这个范围内取一个随机值作为属性值。 Color:设置一个固定的颜色作为属性值。 TwoColors:设置两个固定颜色值,每个粒子实际的属性值由这两个颜色值随机线性插值得到。 Gradient:设置一个颜色渐变,在粒子的...
来源: Laya3.0_文档 发布时间: 20251010
...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { // 该文本自动适应尺寸 var autoSizeText = createSampleText(); autoSizeText.overflow = Text.VISIBLE; autoSizeText.y = 50; // 该文本被限制了宽度 var widthLim...
来源: Laya_示例 发布时间: 20251209
...5 颜色类6.常见的Params类型6.1 Float6.2 Texture2D6.3 Vector2/3/46.4 Color6.5 Define7.自定义函数8.进阶示例8.1 顶点着色器片段8.2 片段着色器片段拓展:快捷操作Shader蓝图 1.蓝图概述 1.1 创建蓝图 在Assert窗口右键Create菜单选择Shader BluePrint创建...
来源: Laya3.0_文档 发布时间: 20251010
...无效 graphics.drawTexture这个api,纹理颜色无效(2.0.5版本) color这个参数根本没有传进去渲染。教程上却说这个可以设置颜色https://ldc2.layabox.com/doc/?nav=zh-as-1-3-0 2018-11-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20181129
...ns void addLine addLine(startPosition: Vector3, endPosition: Vector3, startColor: Color, endColor: Color): void Defined in laya/d3/core/pixelLine/PixelLineRenderer.ts:167 增加一条线。 Parameters startPosition: Vector3 初始点位置 endPosition: Vector3 结束点位置 startColor: Color 初...
来源: Laya3.0_api 发布时间: 20231115
...i<10000;i++){txt=new Text();txt.text=(Math.random()*100).toFixed(0);txt.color="#CCCCCC";txt.x=Math.random()*550;txt.y=Math.random()*400;textBox.addChild(txt);}Laya.stage.addChild(textBox); 附件 : --> 2019-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20190531
...ils 是文本工具集。 Hierarchy UIUtils Index Methods fillArray gray toColor Methods Static fillArray fillArray(arr: any[], str: string, type?: typeof Number | typeof String): any[] Defined in laya/ui/UIUtils.ts:19 用字符串填充数组,并返回数组副本。 Parameters arr: any[] 源数...
来源: Laya3.0_api 发布时间: 20231115
...始化舞台 Laya.init(1334,750,Laya.WebGL); //背景颜色 Laya.stage.bgColor = "#1b2436"; //创建缓动文本 createTween(); function createTween(){ //"LayaBox"字符串总宽度 var w = 800; //文本创建的起始x位置(>>在此使用右移运算符,相当于/2 用>>效率更高) var offsetX...
来源: Laya2.0_文档 发布时间: 20210715