大约有 511 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0058 秒)
Laya_社区(277) Laya2.0_文档(68) Laya3.0_api(54) Laya_示例(42) Laya3.0_文档(30) Laya2.0_示例(24) Laya2.0_api(9) laya_api(7)
... var pointLight = scene.addChild(new Laya.PointLight()); pointLight.ambientColor = new Laya.Vector3(0.8, 0.8, 0.8); pointLight.specularColor = new Laya.Vector3(2.0, 2.0, 0.9); pointLight.diffuseColor = new Laya.Vector3(1, 1, 1); pointLight.transform.translate(new Laya.Vector3(0, 30, 0)); pointLight....
来源: Laya_社区 发布时间: 20170714
...始化舞台 Laya.init(1334,750,Laya.WebGL); //背景颜色 Laya.stage.bgColor = "#1b2436"; //创建缓动文本 this.createTween(); } //创建缓动文本 private createTween():void{ //"LayaBox字符串总宽度" var w:number = 800; //文本创建的起始位置(>>在此使用右移运算符,相...
来源: Laya2.0_文档 发布时间: 20210715
...structors constructor Properties ALPHA alpha clipMatDir clipMatPos clipOff color colorAdd defines filters mainID mmat ref shader size subID texture textureHost u_CurrentTime u_Duration u_EndVelocity u_Gravity u_MvpMatrix u_mmat2 u_texture TEMPMAT4_ARRAY Methods clear release setFilters setValue upda...
来源: Laya3.0_api 发布时间: 20231115
... txt.text = "This is a demo"; txt.color = "#FF0000"; txt.fontSize = 50; txt.stroke = 3; txt.strokeColor = "#FFFFFF"; txt.pos(50, 100); Laya.stage.addChild...
来源: Laya_社区 发布时间: 20170209
...new Laya.SpotLight()) as Laya.SpotLight; //设置聚光灯颜色 spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.1...
来源: Laya2.0_文档 发布时间: 20210715
...ze = 30; p.style.align = "center"; var html:String = "<span color='#ffffff'>居中测试文本</span>"; p.innerHTML = html; p.style.align是设置水平居中。 2017-02-21 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...
来源: Laya_社区 发布时间: 20170221
...,这种材质常用特效制作。 #### 主要属性与方法 > 属性 `color:Vector4` 颜色。 `renderMode:int` [write-only] 设置渲染模式。 `texture:BaseTexture` 贴图。 `tilingOffset:Vector4` 纹理平铺和偏移。 #### 创建和使用Effect材质 下面代码来自官方示例([demo...
来源: Laya2.0_文档 发布时间: 20210714
...ault:"hello world"}*/ public text: string = "hello world"; /** @prop {name:color, tips:"字符串类型示例", type:String, default:"#0000ff"}*/ public color: string = "#0000ff"; /** @prop {name:layoutType, tips:"排版方式(verticalRight-0 竖排从右到左)", type:enum, default:0}*/ public ...
来源: Laya_社区 发布时间: 20191103
...ene.addChild(new Laya.SpotLight()); //设置聚光灯颜色 this.spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 this.spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = this.spotLight.transform.worldMatrix; mat.setForward(new Laya.V...
来源: Laya2.0_文档 发布时间: 20210715
...,这种材质常用特效制作。 #### 主要属性与方法 > 属性 `color:Vector4` 颜色。 `renderMode:int` [write-only] 设置渲染模式。 `texture:BaseTexture` 贴图。 `tilingOffset:Vector4` 纹理平铺和偏移。 #### 创建和使用Effect材质 下面代码来自官方示例([demo...
来源: Laya2.0_文档 发布时间: 20210714